C# 클래스 CSharpUtils.VirtualFileSystem.FileSystem

상속: IDisposable
파일 보기 프로젝트 열기: soywiz/csharputils 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

AbsoluteNormalizePath() 정적인 공개 메소드

static public AbsoluteNormalizePath ( String Path, String CurrentWorkingPath = "" ) : String
Path String
CurrentWorkingPath String
리턴 String

Access() 보호된 메소드

protected Access ( String Path, FileSystem &NewFileSystem, String &NewPath ) : void
Path String
NewFileSystem FileSystem
NewPath String
리턴 void

CombinePath() 정적인 공개 메소드

static public CombinePath ( String BasePath, String PathToCombine ) : String
BasePath String
PathToCombine String
리턴 String

ComparablePath() 공개 메소드

public ComparablePath ( String Path ) : String
Path String
리턴 String

Copy() 공개 메소드

public Copy ( string SrcFile, string DstFile, bool Overwrite = false ) : void
SrcFile string
DstFile string
Overwrite bool
리턴 void

CopyFile() 정적인 공개 메소드

static public CopyFile ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath ) : void
SourceFileSystem FileSystem
SourcePath String
DestFileSystem FileSystem
DestPath String
리턴 void

CopyTree() 정적인 공개 메소드

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
리턴 void

CreateDirectory() 공개 메소드

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

CreateSymLink() 공개 메소드

public CreateSymLink ( String Pointer, String Pointee ) : void
Pointer String
Pointee String
리턴 void

DeleteDirectory() 공개 메소드

public DeleteDirectory ( String Path ) : void
Path String
리턴 void

DeleteFile() 공개 메소드

public DeleteFile ( String Path ) : void
Path String
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Exists() 공개 메소드

public Exists ( string FileName ) : bool
FileName string
리턴 bool

FileSystemFromPath() 공개 메소드

public FileSystemFromPath ( String Path, bool AllowAccessingParent = false ) : FileSystemFromPath
Path String
AllowAccessingParent bool
리턴 FileSystemFromPath

FilterFileSystemEntry() 보호된 메소드

protected FilterFileSystemEntry ( FileSystemEntry FileSystemEntry ) : FileSystemEntry
FileSystemEntry FileSystemEntry
리턴 FileSystemEntry

FindFiles() 공개 메소드

public FindFiles ( String Path ) : IEnumerable
Path String
리턴 IEnumerable

FindFiles() 공개 메소드

public FindFiles ( String Path, Regex Regex ) : IEnumerable
Path String
Regex System.Text.RegularExpressions.Regex
리턴 IEnumerable

FindFiles() 공개 메소드

public FindFiles ( String Path, Wildcard Wildcard ) : IEnumerable
Path String
Wildcard Wildcard
리턴 IEnumerable

FindMountedFiles() 공개 메소드

public FindMountedFiles ( String NewPath ) : IEnumerable
NewPath String
리턴 IEnumerable

GetFileInfo() 공개 메소드

public GetFileInfo ( String Path ) : FileSystemEntry
Path String
리턴 FileSystemEntry

GetFileTime() 공개 메소드

public GetFileTime ( String Path ) : FileSystemEntry.FileTime
Path String
리턴 FileSystemEntry.FileTime

ImplCreateDirectory() 추상적인 보호된 메소드

abstract protected ImplCreateDirectory ( String Path, int Mode = 0777 ) : void
Path String
Mode int
리턴 void

ImplCreateSymLink() 추상적인 보호된 메소드

abstract protected ImplCreateSymLink ( String Pointer, String Pointee ) : void
Pointer String
Pointee String
리턴 void

ImplDeleteDirectory() 추상적인 보호된 메소드

abstract protected ImplDeleteDirectory ( String Path ) : void
Path String
리턴 void

ImplDeleteFile() 추상적인 보호된 메소드

abstract protected ImplDeleteFile ( String Path ) : void
Path String
리턴 void

ImplFindFiles() 추상적인 보호된 메소드

abstract protected ImplFindFiles ( String Path ) : IEnumerable
Path String
리턴 IEnumerable

ImplGetFileInfo() 추상적인 보호된 메소드

abstract protected ImplGetFileInfo ( String Path ) : FileSystemEntry
Path String
리턴 FileSystemEntry

ImplMoveFile() 추상적인 보호된 메소드

abstract protected ImplMoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void
ExistingFileName String
NewFileName String
ReplaceExisiting bool
리턴 void

ImplOpenFile() 추상적인 보호된 메소드

abstract protected ImplOpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream
FileName String
FileMode FileMode
리턴 FileSystemFileStream

ImplSetFileTime() 추상적인 보호된 메소드

abstract protected ImplSetFileTime ( String Path, FileSystemEntry FileTime ) : void
Path String
FileTime FileSystemEntry
리턴 void

Mount() 공개 메소드

public Mount ( String Path, FileSystem FileSystemToMount, String FileSystemToMountPath = "/" ) : void
Path String
FileSystemToMount FileSystem
FileSystemToMountPath String
리턴 void

MoveFile() 공개 메소드

public MoveFile ( String ExistingFileName, String NewFileName, bool ReplaceExisiting ) : void
ExistingFileName String
NewFileName String
ReplaceExisiting bool
리턴 void

OpenFile() 공개 메소드

public OpenFile ( String FileName, FileMode FileMode ) : FileSystemFileStream
FileName String
FileMode FileMode
리턴 FileSystemFileStream

OpenFileCreate() 공개 메소드

public OpenFileCreate ( String FileName ) : FileSystemFileStream
FileName String
리턴 FileSystemFileStream

OpenFileCreateScope() 공개 메소드

public OpenFileCreateScope ( String FileName, Action Action ) : void
FileName String
Action Action
리턴 void

OpenFileRW() 공개 메소드

public OpenFileRW ( String FileName ) : FileSystemFileStream
FileName String
리턴 FileSystemFileStream

OpenFileRWScope() 공개 메소드

public OpenFileRWScope ( String FileName, Action Action ) : void
FileName String
Action Action
리턴 void

OpenFileRead() 공개 메소드

public OpenFileRead ( String FileName ) : FileSystemFileStream
FileName String
리턴 FileSystemFileStream

OpenFileReadScope() 공개 메소드

public OpenFileReadScope ( String FileName, Action Action ) : void
FileName String
Action Action
리턴 void

OpenFileScope() 공개 메소드

public OpenFileScope ( String FileName, FileMode FileMode, Action Action ) : void
FileName String
FileMode FileMode
Action Action
리턴 void

ReadAllBytes() 공개 메소드

public ReadAllBytes ( string FileName ) : byte[]
FileName string
리턴 byte[]

ReplaceFileWithStream() 공개 메소드

public ReplaceFileWithStream ( String Path, Stream NewStream, long>.Action Progress = null ) : void
Path String
NewStream Stream
Progress long>.Action
리턴 void

SetFileTime() 공개 메소드

public SetFileTime ( String Path, FileSystemEntry FileTime ) : void
Path String
FileTime FileSystemEntry
리턴 void

Shutdown() 공개 메소드

public Shutdown ( ) : void
리턴 void

TryInitialize() 공개 메소드

public TryInitialize ( ) : void
리턴 void

UnMount() 공개 메소드

public UnMount ( String Path ) : void
Path String
리턴 void

WriteAllBytes() 공개 메소드

public WriteAllBytes ( string FileName, byte Buffer ) : void
FileName string
Buffer byte
리턴 void