Dashboard: fix createion of dir for attachments

This commit is contained in:
phil 2024-05-07 09:24:27 +02:00
parent 50920059b6
commit 81d6d5ad83

View file

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