fix: Use makedirs instead of mkdir to create arhived sites path
This commit is contained in:
parent
d1e229de2c
commit
f648852e81
1 changed files with 1 additions and 2 deletions
|
|
@ -698,8 +698,7 @@ def _drop_site(site, root_login='root', root_password=None, archived_sites_path=
|
|||
|
||||
archived_sites_path = archived_sites_path or os.path.join(frappe.get_app_path('frappe'), '..', '..', '..', 'archived', 'sites')
|
||||
|
||||
if not os.path.exists(archived_sites_path):
|
||||
os.mkdir(archived_sites_path)
|
||||
os.makedirs(archived_sites_path, exist_ok=True)
|
||||
|
||||
move(archived_sites_path, site)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue