2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

fix: replace shutil.move with Path.rename

Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
Dany Robert 2021-12-17 19:38:41 +05:30 committed by GitHub
parent aaf48566b7
commit a648590be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")