mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
fix(patch): Rename parent dir instead of moving individual dirs
This commit is contained in:
parent
26e5630265
commit
0bd0717f24
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user