diff --git a/src/documents/tests/test_management_consumer.py b/src/documents/tests/test_management_consumer.py index 150880116..1230288c5 100644 --- a/src/documents/tests/test_management_consumer.py +++ b/src/documents/tests/test_management_consumer.py @@ -271,25 +271,11 @@ class TestConsumer(DirectoriesMixin, ConsumerThreadMixin, TransactionTestCase): "ignore": False, }, { - "path": os.path.join(self.dirs.consumption_dir, ".DS_STORE", "foo.pdf"), + "path": os.path.join(self.dirs.consumption_dir, ".DS_STORE"), "ignore": True, }, { - "path": os.path.join( - self.dirs.consumption_dir, - "foo", - ".DS_STORE", - "bar.pdf", - ), - "ignore": True, - }, - { - "path": os.path.join( - self.dirs.consumption_dir, - ".DS_STORE", - "foo", - "bar.pdf", - ), + "path": os.path.join(self.dirs.consumption_dir, ".DS_Store"), "ignore": True, }, { diff --git a/src/paperless/settings.py b/src/paperless/settings.py index b8abea5ff..3b748672f 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -710,7 +710,7 @@ CONSUMER_IGNORE_PATTERNS = list( json.loads( os.getenv( "PAPERLESS_CONSUMER_IGNORE_PATTERNS", - '[".DS_STORE/*", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*"]', # noqa: E501 + '[".DS_Store", ".DS_STORE", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*"]', # noqa: E501 ), ), )