mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 10:36:58 +01:00
Enhancement: ignore same files in sanity checker as consumer (#10999)
This commit is contained in:
parent
d609b386fe
commit
79b30fbade
3 changed files with 23 additions and 2 deletions
|
|
@ -76,7 +76,9 @@ def check_sanity(*, progress=False, scheduled=True) -> SanityCheckMessages:
|
|||
messages = SanityCheckMessages()
|
||||
|
||||
present_files = {
|
||||
x.resolve() for x in Path(settings.MEDIA_ROOT).glob("**/*") if not x.is_dir()
|
||||
x.resolve()
|
||||
for x in Path(settings.MEDIA_ROOT).glob("**/*")
|
||||
if not x.is_dir() and x.name not in settings.IGNORABLE_FILES
|
||||
}
|
||||
|
||||
lockfile = Path(settings.MEDIA_LOCK).resolve()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue