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

@@ -107,9 +107,9 @@ public void CreateDirectory(FileSystemPath path)
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Delete(FileSystemPath path)
public void Delete(FileSystemPath path, DeleteMode mode = DeleteMode.TopMostLayer)
{
var mount = GetMountPoint(path);
mount.FileSystem.Delete(path);
mount.FileSystem.Delete(path, mode);
}
}