aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/py-paperless-ngx/files/patch-src_documents_management_commands_document__consumer.py
blob: 7ce264a9831f1e32a0b653f2ab2dd2a306ed2258 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/documents/management/commands/document_consumer.py.orig	2025-04-19 22:34:42 UTC
+++ src/documents/management/commands/document_consumer.py
@@ -292,7 +292,7 @@ class Command(BaseCommand):
             logger.debug(f"Configuring timeout to {timeout_ms}ms")
 
         inotify = INotify()
-        inotify_flags = flags.CLOSE_WRITE | flags.MOVED_TO | flags.MODIFY
+        inotify_flags = flags.CLOSE_WRITE | flags.MOVED_TO | flags.MODIFY | flags.CREATE
         if recursive:
             inotify.add_watch_recursive(directory, inotify_flags)
         else: