Skip to content

Commit

Permalink
fix: replace shutil.move with Path.rename
Browse files Browse the repository at this point in the history
Co-authored-by: gavin <gavin18d@gmail.com>
  • Loading branch information
rtdany10 and gavindsouza authored Dec 17, 2021
1 parent aaf4856 commit a648590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/patches/v5/update_archived_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def execute(bench_path):
os.makedirs(new_directory)

for archived_site_path in old_directory.glob("*"):
shutil.move(str(archived_site_path), str(new_directory))
archived_site_path.rename(new_directory)

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

Expand Down

0 comments on commit a648590

Please sign in to comment.