C# Class CSharpUtils.VirtualFileSystem.FileSystem

Inheritance: IDisposable
Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Méthode Description
AbsoluteNormalizePath ( String Path, String CurrentWorkingPath = "" ) : String
CombinePath ( String BasePath, String PathToCombine ) : String
ComparablePath ( String Path ) : String
Copy ( string SrcFile, string DstFile, bool Overwrite = false ) : void
CopyFile ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath ) : void

CopyTree ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath, bool>.Func ActionValidate = null, Action ActionProgress = null, byte Buffer = null ) : void

CreateDirectory ( String Path, int Mode = 0777, bool ThrowErrorIfNotExists = true ) : void

CreateSymLink ( String Pointer, String Pointee ) : void

DeleteDirectory ( String Path ) : void

DeleteFile ( String Path ) : void

Dispose ( ) : void
Exists ( string FileName ) : bool

FileSystemFromPath ( String Path, bool AllowAccessingParent = false ) : FileSystemFromPath
FindFiles ( String Path ) : IEnumerable

FindFiles ( String Path, Regex Regex ) : IEnumerable

FindFiles ( String Path, Wildcard Wildcard ) : IEnumerable

FindMountedFiles ( String NewPath ) : IEnumerable

GetFileInfo ( String Path ) : FileSystemEntry

GetFileTime ( String Path ) : FileSystemEntry.FileTime

Mount ( String Path, FileSystem FileSystemToMount, String FileSystemToMountPath = "/" ) : void
MoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void

OpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream

OpenFileCreate ( String FileName ) : FileSystemFileStream

OpenFileCreateScope ( String FileName, Action Action ) : void

OpenFileRW ( String FileName ) : FileSystemFileStream

OpenFileRWScope ( String FileName, Action Action ) : void

OpenFileRead ( String FileName ) : FileSystemFileStream

OpenFileReadScope ( String FileName, Action Action ) : void

OpenFileScope ( String FileName, FileMode FileMode, Action Action ) : void

ReadAllBytes ( string FileName ) : byte[]

ReplaceFileWithStream ( String Path, Stream NewStream, long>.Action Progress = null ) : void
SetFileTime ( String Path, FileSystemEntry FileTime ) : void

Shutdown ( ) : void
TryInitialize ( ) : void
UnMount ( String Path ) : void
WriteAllBytes ( string FileName, byte Buffer ) : void

Méthodes protégées

Méthode Description
Access ( String Path, FileSystem &NewFileSystem, String &NewPath ) : void
FilterFileSystemEntry ( FileSystemEntry FileSystemEntry ) : FileSystemEntry

ImplCreateDirectory ( String Path, int Mode = 0777 ) : void

ImplCreateSymLink ( String Pointer, String Pointee ) : void

ImplDeleteDirectory ( String Path ) : void

ImplDeleteFile ( String Path ) : void

ImplFindFiles ( String Path ) : IEnumerable

ImplGetFileInfo ( String Path ) : FileSystemEntry

ImplMoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void

ImplOpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream

ImplSetFileTime ( String Path, FileSystemEntry FileTime ) : void

Method Details

AbsoluteNormalizePath() static public méthode

static public AbsoluteNormalizePath ( String Path, String CurrentWorkingPath = "" ) : String
Path String
CurrentWorkingPath String
Résultat String

Access() protected méthode

protected Access ( String Path, FileSystem &NewFileSystem, String &NewPath ) : void
Path String
NewFileSystem FileSystem
NewPath String
Résultat void

CombinePath() static public méthode

static public CombinePath ( String BasePath, String PathToCombine ) : String
BasePath String
PathToCombine String
Résultat String

ComparablePath() public méthode

public ComparablePath ( String Path ) : String
Path String
Résultat String

Copy() public méthode

public Copy ( string SrcFile, string DstFile, bool Overwrite = false ) : void
SrcFile string
DstFile string
Overwrite bool
Résultat void

CopyFile() static public méthode

static public CopyFile ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath ) : void
SourceFileSystem FileSystem
SourcePath String
DestFileSystem FileSystem
DestPath String
Résultat void

CopyTree() static public méthode

static public CopyTree ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath, bool>.Func ActionValidate = null, Action ActionProgress = null, byte Buffer = null ) : void
SourceFileSystem FileSystem
SourcePath String
DestFileSystem FileSystem
DestPath String
ActionValidate bool>.Func
ActionProgress Action
Buffer byte
Résultat void

CreateDirectory() public méthode

public CreateDirectory ( String Path, int Mode = 0777, bool ThrowErrorIfNotExists = true ) : void
Path String
Mode int
ThrowErrorIfNotExists bool
Résultat void

CreateSymLink() public méthode

public CreateSymLink ( String Pointer, String Pointee ) : void
Pointer String
Pointee String
Résultat void

DeleteDirectory() public méthode

public DeleteDirectory ( String Path ) : void
Path String
Résultat void

DeleteFile() public méthode

public DeleteFile ( String Path ) : void
Path String
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Exists() public méthode

public Exists ( string FileName ) : bool
FileName string
Résultat bool

FileSystemFromPath() public méthode

public FileSystemFromPath ( String Path, bool AllowAccessingParent = false ) : FileSystemFromPath
Path String
AllowAccessingParent bool
Résultat FileSystemFromPath

FilterFileSystemEntry() protected méthode

protected FilterFileSystemEntry ( FileSystemEntry FileSystemEntry ) : FileSystemEntry
FileSystemEntry FileSystemEntry
Résultat FileSystemEntry

FindFiles() public méthode

public FindFiles ( String Path ) : IEnumerable
Path String
Résultat IEnumerable

FindFiles() public méthode

public FindFiles ( String Path, Regex Regex ) : IEnumerable
Path String
Regex System.Text.RegularExpressions.Regex
Résultat IEnumerable

FindFiles() public méthode

public FindFiles ( String Path, Wildcard Wildcard ) : IEnumerable
Path String
Wildcard Wildcard
Résultat IEnumerable

FindMountedFiles() public méthode

public FindMountedFiles ( String NewPath ) : IEnumerable
NewPath String
Résultat IEnumerable

GetFileInfo() public méthode

public GetFileInfo ( String Path ) : FileSystemEntry
Path String
Résultat FileSystemEntry

GetFileTime() public méthode

public GetFileTime ( String Path ) : FileSystemEntry.FileTime
Path String
Résultat FileSystemEntry.FileTime

ImplCreateDirectory() abstract protected méthode

abstract protected ImplCreateDirectory ( String Path, int Mode = 0777 ) : void
Path String
Mode int
Résultat void

ImplCreateSymLink() abstract protected méthode

abstract protected ImplCreateSymLink ( String Pointer, String Pointee ) : void
Pointer String
Pointee String
Résultat void

ImplDeleteDirectory() abstract protected méthode

abstract protected ImplDeleteDirectory ( String Path ) : void
Path String
Résultat void

ImplDeleteFile() abstract protected méthode

abstract protected ImplDeleteFile ( String Path ) : void
Path String
Résultat void

ImplFindFiles() abstract protected méthode

abstract protected ImplFindFiles ( String Path ) : IEnumerable
Path String
Résultat IEnumerable

ImplGetFileInfo() abstract protected méthode

abstract protected ImplGetFileInfo ( String Path ) : FileSystemEntry
Path String
Résultat FileSystemEntry

ImplMoveFile() abstract protected méthode

abstract protected ImplMoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void
ExistingFileName String
NewFileName String
ReplaceExisiting bool
Résultat void

ImplOpenFile() abstract protected méthode

abstract protected ImplOpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream
FileName String
FileMode FileMode
Résultat FileSystemFileStream

ImplSetFileTime() abstract protected méthode

abstract protected ImplSetFileTime ( String Path, FileSystemEntry FileTime ) : void
Path String
FileTime FileSystemEntry
Résultat void

Mount() public méthode

public Mount ( String Path, FileSystem FileSystemToMount, String FileSystemToMountPath = "/" ) : void
Path String
FileSystemToMount FileSystem
FileSystemToMountPath String
Résultat void

MoveFile() public méthode

public MoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void
ExistingFileName String
NewFileName String
ReplaceExisiting bool
Résultat void

OpenFile() public méthode

public OpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream
FileName String
FileMode FileMode
Résultat FileSystemFileStream

OpenFileCreate() public méthode

public OpenFileCreate ( String FileName ) : FileSystemFileStream
FileName String
Résultat FileSystemFileStream

OpenFileCreateScope() public méthode

public OpenFileCreateScope ( String FileName, Action Action ) : void
FileName String
Action Action
Résultat void

OpenFileRW() public méthode

public OpenFileRW ( String FileName ) : FileSystemFileStream
FileName String
Résultat FileSystemFileStream

OpenFileRWScope() public méthode

public OpenFileRWScope ( String FileName, Action Action ) : void
FileName String
Action Action
Résultat void

OpenFileRead() public méthode

public OpenFileRead ( String FileName ) : FileSystemFileStream
FileName String
Résultat FileSystemFileStream

OpenFileReadScope() public méthode

public OpenFileReadScope ( String FileName, Action Action ) : void
FileName String
Action Action
Résultat void

OpenFileScope() public méthode

public OpenFileScope ( String FileName, FileMode FileMode, Action Action ) : void
FileName String
FileMode FileMode
Action Action
Résultat void

ReadAllBytes() public méthode

public ReadAllBytes ( string FileName ) : byte[]
FileName string
Résultat byte[]

ReplaceFileWithStream() public méthode

public ReplaceFileWithStream ( String Path, Stream NewStream, long>.Action Progress = null ) : void
Path String
NewStream Stream
Progress long>.Action
Résultat void

SetFileTime() public méthode

public SetFileTime ( String Path, FileSystemEntry FileTime ) : void
Path String
FileTime FileSystemEntry
Résultat void

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

TryInitialize() public méthode

public TryInitialize ( ) : void
Résultat void

UnMount() public méthode

public UnMount ( String Path ) : void
Path String
Résultat void

WriteAllBytes() public méthode

public WriteAllBytes ( string FileName, byte Buffer ) : void
FileName string
Buffer byte
Résultat void