fix: Use makedirs instead of mkdir to create arhived sites path

This commit is contained in:
ChillarAnand 2021-12-23 15:53:43 +05:30
parent d1e229de2c
commit f648852e81

View file

@ -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)