2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-29 07:19:05 +00:00

Merge pull request #1235 from rtdany10/patch-2

fix: PosixPath object has no attribute 'rstrip'
This commit is contained in:
gavin 2021-12-20 15:18:23 +05:30 committed by GitHub
commit f5792f7305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@ patch and try again later.
Corresponding changes in frappe/frappe via https://github.com/frappe/frappe/pull/15060
"""
import os
import shutil
from pathlib import Path
import click
@ -40,7 +39,7 @@ def execute(bench_path):
os.makedirs(new_directory)
for archived_site_path in old_directory.glob("*"):
shutil.move(archived_site_path, new_directory)
archived_site_path.rename(new_directory)
click.secho(f"Archived sites are now stored under {new_directory}")