2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +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:
gavin 2022-08-04 14:05:30 +05:30 committed by GitHub
commit 925530f05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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