|
@@ -6,66 +6,56 @@ namespace Utilities
|
|
|
{
|
|
|
public interface IFileSystem
|
|
|
{
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FileSystemEntry GetEntry(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
FileSystemEntry CreateFile(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
FileSystemEntry CreateDirectory(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Move(string source, string destination);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Delete(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
List<FileSystemEntry> ListEntriesInDirectory(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<KeyValuePair<string, ulong>> ListDataStreams(string path);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stream OpenFile(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
void SetAttributes(string path, bool? isHidden, bool? isReadonly, bool? isArchived);
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|