Add PAPERLESS_TRASH_DIR

When set, original files are moved here instead of being permanently
removed when a document is deleted.
This commit is contained in:
Felix Eckhofer
2021-08-22 19:31:50 +02:00
parent cd43bc1f66
commit 64304c5121
8 changed files with 76 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ def paths_check(app_configs, **kwargs):
"""
return path_check("PAPERLESS_DATA_DIR", settings.DATA_DIR) + \
path_check("PAPERLESS_TRASH_DIR", settings.TRASH_DIR) + \
path_check("PAPERLESS_MEDIA_ROOT", settings.MEDIA_ROOT) + \
path_check("PAPERLESS_CONSUMPTION_DIR", settings.CONSUMPTION_DIR)