mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-20 08:05:53 +02:00
SMBServer v1.0.5
This commit is contained in:
parent
b75820452d
commit
bd1006cb81
400 changed files with 28062 additions and 0 deletions
34
Utilities/IFileSystem/IFileSystem.cs
Normal file
34
Utilities/IFileSystem/IFileSystem.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue