From 84721b001f08519cb98d6691a72bc79c913032ef Mon Sep 17 00:00:00 2001 From: Dennis Gaida <2392217+DennisGaida@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:48:50 +0100 Subject: [PATCH] Change: add Thumbs.db to default ignores (#5924) * Adding Thumbs.db to default ignores Thanks Windows for creating these great little database files everywhere * Updating configuration with new default --- docs/configuration.md | 2 +- src/paperless/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 36a1bb1c9..5fd14caf1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1014,7 +1014,7 @@ or hidden folders some tools use to store data. `._foo.pdf` and `._bar/foo.pdf` Defaults to - `[".DS_STORE/*", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*"]`. + `[".DS_Store", ".DS_STORE", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*", "Thumbs.db"]`. #### [`PAPERLESS_CONSUMER_BARCODE_SCANNER=`](#PAPERLESS_CONSUMER_BARCODE_SCANNER) {#PAPERLESS_CONSUMER_BARCODE_SCANNER} diff --git a/src/paperless/settings.py b/src/paperless/settings.py index d2ee531fc..e936fc33e 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -856,7 +856,7 @@ CONSUMER_IGNORE_PATTERNS = list( json.loads( os.getenv( "PAPERLESS_CONSUMER_IGNORE_PATTERNS", - '[".DS_Store", ".DS_STORE", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*"]', + '[".DS_Store", ".DS_STORE", "._*", ".stfolder/*", ".stversions/*", ".localized/*", "desktop.ini", "@eaDir/*", "Thumbs.db"]', ), ), )