Fix issue when creating assets.json and folder does not exist. Improve module/theme uninstall to remove empty folders.
This commit is contained in:
@ -126,6 +126,10 @@ namespace Oqtane.Infrastructure
|
||||
{
|
||||
File.Delete(manifestpath);
|
||||
}
|
||||
if (!Directory.Exists(Path.GetDirectoryName(manifestpath)))
|
||||
{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(manifestpath));
|
||||
}
|
||||
File.WriteAllText(manifestpath, JsonSerializer.Serialize(assets));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user