Add delete mode options for VFS

This commit is contained in:
duckdoom4
2023-09-09 20:08:29 +02:00
parent 994a19466f
commit dc63ab38dc
10 changed files with 49 additions and 13 deletions

View File

@@ -126,7 +126,7 @@ public void CreateDirectory(FileSystemPath path)
ZipArchive.CreateEntry(ToEntryPath(path));
}
public void Delete(FileSystemPath path)
public void Delete(FileSystemPath path, DeleteMode mode = DeleteMode.TopMostLayer)
{
ZipArchiveEntry? entry = ZipArchive.GetEntry(ToEntryPath(path));
entry?.Delete();