2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-15 14:42:22 +00:00

fix(patch): Rename parent dir instead of moving individual dirs

This commit is contained in:
Gavin D'souza 2022-08-04 13:03:22 +05:30
parent 26e5630265
commit 0bd0717f24

View File

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