EditorTool3D/Assets/ZXL/Scripts/Test/FS/IFileSystem.cs

23 lines
745 B
C#

using System;
namespace ZXLA
{
public interface IFileSystem
{
// event Action<string> OnCreateFile;
// event Action<string> OnCreateDirectory;
event Action<FileSystemOperation> OnFileSystemChanged;
void CreateFile(string path, int parentDepth);
bool FileExists(string path);
void RenameFile(string path, string newName);
void MoveFile(string oldPath, string newPath);
void DeleteFile(string path);
void CreateDirectory(string path, int parentDepth);
bool DirectoryExists(string path);
void RenameDirectory(string path, string newName);
void MoveDirectory(string oldPath, string newPath);
void DeleteDirectory(string path);
}
}