mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
34 lines
937 B
C#
34 lines
937 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
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);
|
|
Stream OpenFile(string path, FileMode mode, FileAccess access, FileShare share);
|
|
void SetAttributes(string path, bool? isHidden, bool? isReadonly, bool? isArchived);
|
|
void SetDates(string path, DateTime? creationDT, DateTime? lastWriteDT, DateTime? lastAccessDT);
|
|
|
|
string Name
|
|
{
|
|
get;
|
|
}
|
|
|
|
long Size
|
|
{
|
|
get;
|
|
}
|
|
|
|
long FreeSpace
|
|
{
|
|
get;
|
|
}
|
|
}
|
|
}
|