mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 17:24:41 +00:00
fix: replace shutil.move with Path.rename
Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
parent
aaf48566b7
commit
a648590be4
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user