2024-08-04 18:44:33 -05:00
|
|
|
|
namespace LANCommander.Server.UI.Components.FileManagerComponents
|
2023-12-18 20:33:35 -06:00
|
|
|
|
{
|
|
|
|
|
|
public interface IFileManagerSource
|
|
|
|
|
|
{
|
2024-01-14 17:56:56 -06:00
|
|
|
|
string DirectorySeparatorCharacter { get; set; }
|
2023-12-18 20:33:35 -06:00
|
|
|
|
FileManagerDirectory GetCurrentPath();
|
|
|
|
|
|
void SetCurrentPath(FileManagerDirectory path);
|
|
|
|
|
|
IEnumerable<FileManagerDirectory> GetDirectoryTree();
|
|
|
|
|
|
FileManagerDirectory ExpandNode(FileManagerDirectory node);
|
|
|
|
|
|
IEnumerable<IFileManagerEntry> GetEntries();
|
|
|
|
|
|
string GetEntryName(IFileManagerEntry entry);
|
|
|
|
|
|
FileManagerDirectory GetDirectory(string path);
|
|
|
|
|
|
FileManagerFile GetFile(string path);
|
|
|
|
|
|
FileManagerDirectory CreateDirectory(string name);
|
|
|
|
|
|
void DeleteEntry(IFileManagerEntry entry);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|