mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-13 04:55:35 -05:00
Add delete mode options for VFS
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
|
||||
namespace pkNX.Containers.VFS;
|
||||
|
||||
public enum DeleteMode
|
||||
{
|
||||
TopMostLayer,
|
||||
TopMostWriteableLayer,
|
||||
AllWritable,
|
||||
All
|
||||
}
|
||||
|
||||
public interface IFileSystem : IDisposable
|
||||
{
|
||||
bool IsReadOnly => false;
|
||||
@@ -53,7 +61,8 @@ public interface IFileSystem : IDisposable
|
||||
/// Deletes the specified file or directory. Does not throw an exception if the specified file or directory does not exist.
|
||||
/// </summary>
|
||||
/// <param name="path">The path and name of the file or directory to delete.</param>
|
||||
void Delete(FileSystemPath path);
|
||||
/// <param name="mode">The method to use when deleting the file or directory.</param>
|
||||
void Delete(FileSystemPath path, DeleteMode mode = DeleteMode.TopMostLayer);
|
||||
|
||||
public void Move(FileSystemPath sourcePath, IFileSystem destinationFileSystem, FileSystemPath destinationPath)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user