mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 19:46:48 +01:00
Ensure all creations of directories create the parents too (#5711)
This commit is contained in:
parent
0b1523f4e5
commit
13201dbfff
11 changed files with 22 additions and 38 deletions
|
|
@ -182,7 +182,7 @@ class Command(BaseCommand):
|
|||
if self.zip_export:
|
||||
self.original_target = self.target
|
||||
|
||||
os.makedirs(settings.SCRATCH_DIR, exist_ok=True)
|
||||
settings.SCRATCH_DIR.mkdir(parents=True, exist_ok=True)
|
||||
temp_dir = tempfile.TemporaryDirectory(
|
||||
dir=settings.SCRATCH_DIR,
|
||||
prefix="paperless-export",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue