mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
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:
parent
cd43bc1f66
commit
64304c5121
8 changed files with 76 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ THUMBNAIL_DIR = os.path.join(MEDIA_ROOT, "documents", "thumbnails")
|
|||
|
||||
DATA_DIR = os.getenv('PAPERLESS_DATA_DIR', os.path.join(BASE_DIR, "..", "data"))
|
||||
|
||||
TRASH_DIR = os.getenv('PAPERLESS_TRASH_DIR')
|
||||
|
||||
# Lock file for synchronizing changes to the MEDIA directory across multiple
|
||||
# threads.
|
||||
MEDIA_LOCK = os.path.join(MEDIA_ROOT, "media.lock")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue