File use-os-makedirs.patch of Package pgadmin4
From: Antonio Larrosa <alarrosa@suse.com>
Subject: Use os.makedirs instead of os.mkdir
So parent directories are created if needed
---
web/pgadmin/setup/data_directory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pgadmin4-7.4/web/pgadmin/setup/data_directory.py
===================================================================
--- pgadmin4-7.4.orig/web/pgadmin/setup/data_directory.py
+++ pgadmin4-7.4/web/pgadmin/setup/data_directory.py
@@ -18,7 +18,7 @@ FAILED_CREATE_DIR = \
def _create_directory_if_not_exists(_path):
if _path and not os.path.exists(_path):
- os.mkdir(_path)
+ os.makedirs(_path)
return True
return False