fix bug with nested folders not being adding when importing assets

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-10-30 16:21:28 +01:00
parent ac8841cd50
commit d13836dc09
+6 -1
View File
@@ -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