C# 클래스 Pytocs.TypeInference.FakeFileSystem

상속: IFileSystem
파일 보기 프로젝트 열기: uxmal/pytocs 1 사용 예제들

공개 메소드들

메소드 설명
CombinePath ( string dir, string file ) : string
CreateDirectory ( string path ) : void
CreateFileStream ( string outputFileName, FileMode mode, FileAccess access ) : Stream
CreateStreamReader ( string path ) : TextReader
CreateStreamWriter ( Stream stm, Encoding encoding ) : TextWriter
DeleteDirectory ( string path ) : void
DeleteFile ( string path ) : void
Dir ( string name ) : FakeFileSystem
DirectoryExists ( string path ) : bool
End ( ) : FakeFileSystem
FakeFileSystem ( ) : System
File ( string name ) : FakeFileSystem
FileExists ( string path ) : bool
GetDirectoryName ( string path ) : string
GetFileName ( string path ) : string
GetFileSystemEntries ( string path ) : string[]
GetFullPath ( string file ) : string
ReadFile ( string path ) : string
ReadFileBytes ( string path ) : byte[]
WriteFile ( string path, string contents ) : void
getFileHash ( string path ) : string
getSystemTempDir ( ) : string
makePathString ( ) : string
relPath ( string path1, string path2 ) : string

비공개 메소드들

메소드 설명
Traverse ( IEnumerable segs ) : FakeDirectory

메소드 상세

CombinePath() 공개 메소드

public CombinePath ( string dir, string file ) : string
dir string
file string
리턴 string

CreateDirectory() 공개 메소드

public CreateDirectory ( string path ) : void
path string
리턴 void

CreateFileStream() 공개 메소드

public CreateFileStream ( string outputFileName, FileMode mode, FileAccess access ) : Stream
outputFileName string
mode FileMode
access FileAccess
리턴 Stream

CreateStreamReader() 공개 메소드

public CreateStreamReader ( string path ) : TextReader
path string
리턴 TextReader

CreateStreamWriter() 공개 메소드

public CreateStreamWriter ( Stream stm, Encoding encoding ) : TextWriter
stm Stream
encoding System.Text.Encoding
리턴 System.IO.TextWriter

DeleteDirectory() 공개 메소드

public DeleteDirectory ( string path ) : void
path string
리턴 void

DeleteFile() 공개 메소드

public DeleteFile ( string path ) : void
path string
리턴 void

Dir() 공개 메소드

public Dir ( string name ) : FakeFileSystem
name string
리턴 FakeFileSystem

DirectoryExists() 공개 메소드

public DirectoryExists ( string path ) : bool
path string
리턴 bool

End() 공개 메소드

public End ( ) : FakeFileSystem
리턴 FakeFileSystem

FakeFileSystem() 공개 메소드

public FakeFileSystem ( ) : System
리턴 System

File() 공개 메소드

public File ( string name ) : FakeFileSystem
name string
리턴 FakeFileSystem

FileExists() 공개 메소드

public FileExists ( string path ) : bool
path string
리턴 bool

GetDirectoryName() 공개 메소드

public GetDirectoryName ( string path ) : string
path string
리턴 string

GetFileName() 공개 메소드

public GetFileName ( string path ) : string
path string
리턴 string

GetFileSystemEntries() 공개 메소드

public GetFileSystemEntries ( string path ) : string[]
path string
리턴 string[]

GetFullPath() 공개 메소드

public GetFullPath ( string file ) : string
file string
리턴 string

ReadFile() 공개 메소드

public ReadFile ( string path ) : string
path string
리턴 string

ReadFileBytes() 공개 메소드

public ReadFileBytes ( string path ) : byte[]
path string
리턴 byte[]

WriteFile() 공개 메소드

public WriteFile ( string path, string contents ) : void
path string
contents string
리턴 void

getFileHash() 공개 메소드

public getFileHash ( string path ) : string
path string
리턴 string

getSystemTempDir() 공개 메소드

public getSystemTempDir ( ) : string
리턴 string

makePathString() 공개 메소드

public makePathString ( ) : string
리턴 string

relPath() 공개 메소드

public relPath ( string path1, string path2 ) : string
path1 string
path2 string
리턴 string