From d13836dc09118c96ec30f650b7b1336fa16b8762 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Thu, 30 Oct 2025 16:21:28 +0100 Subject: [PATCH] fix bug with nested folders not being adding when importing assets Signed-off-by: Ronni Skansing --- backend/service/import.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/service/import.go b/backend/service/import.go index e9a30ff..192f560 100644 --- a/backend/service/import.go +++ b/backend/service/import.go @@ -775,8 +775,13 @@ func (im *Import) createAssetFromZipFile( return false, err } - // create root filesystem for the full context path (controlled paths only) + // ensure shared directory exists fullContextPath := filepath.Join(im.Asset.RootFolder, contextFolder) + if err := os.MkdirAll(fullContextPath, 0755); err != nil { + return false, err + } + + // create root filesystem for the full context path (controlled paths only) contextRoot, err := os.OpenRoot(fullContextPath) if err != nil { return false, err