Skip to content

Commit

Permalink
fix(patch): Rename parent dir instead of moving individual dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Aug 4, 2022
1 parent 26e5630 commit 0bd0717
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bench/patches/v5/update_archived_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def execute(bench_path):
if not os.path.exists(new_directory):
os.makedirs(new_directory)

for archived_site_path in old_directory.glob("*"):
archived_site_path.rename(new_directory)
old_directory.rename(new_directory)

click.secho(f"Archived sites are now stored under {new_directory}")

Expand Down

0 comments on commit 0bd0717

Please sign in to comment.