mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 15:08:24 +00:00
Merge pull request #1356 from gavindsouza/archived_sites-patch-fix
fix(patch): Rename parent dir instead of moving individual dirs
This commit is contained in:
commit
925530f05b
@ -38,8 +38,7 @@ def execute(bench_path):
|
|||||||
if not os.path.exists(new_directory):
|
if not os.path.exists(new_directory):
|
||||||
os.makedirs(new_directory)
|
os.makedirs(new_directory)
|
||||||
|
|
||||||
for archived_site_path in old_directory.glob("*"):
|
old_directory.rename(new_directory)
|
||||||
archived_site_path.rename(new_directory)
|
|
||||||
|
|
||||||
click.secho(f"Archived sites are now stored under {new_directory}")
|
click.secho(f"Archived sites are now stored under {new_directory}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user