diff --git a/src/gisaf/models/dashboard.py b/src/gisaf/models/dashboard.py index 4e6bc88..7634744 100644 --- a/src/gisaf/models/dashboard.py +++ b/src/gisaf/models/dashboard.py @@ -169,7 +169,7 @@ class DashboardPage(DashboardPageCommon, DashboardPageMetaData, table=True): Make sure the directory exists, before saving the file """ dir_name = Path(conf.dashboard.base_storage_dir) / self.group - dir_name.mkdir(exist_ok=True) + dir_name.mkdir(parents=True, exist_ok=True) return dir_name def get_attachment_file_name(self):