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

@@ -102,7 +102,7 @@ public void CreateDirectory(FileSystemPath path)
Directory.CreateDirectory(GetPhysicalPath(path));
}
public void Delete(FileSystemPath path)
public void Delete(FileSystemPath path, DeleteMode mode = DeleteMode.TopMostLayer)
{
if (path.IsFile)
File.Delete(GetPhysicalPath(path));