Skip to content

Commit

Permalink
Create whole path for target file
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 9, 2023
1 parent 936b988 commit fb37a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/management/commands/restoredb.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def handle(self, *args, **options):
for source, target, file in fixture_files:
target_path = os.path.join(settings.BASE_DIR, target)
if not os.path.exists(target_path):
os.mkdir(target_path)
os.makedirs(target_path)
shutil.copyfile(
os.path.join(settings.BASE_DIR, source, file),
os.path.join(target_path, file)
Expand Down

0 comments on commit fb37a46

Please sign in to comment.