C# 클래스 Pytocs.TypeInference.FileSystem

상속: IFileSystem
파일 보기 프로젝트 열기: uxmal/pytocs

공개 메소드들

메소드 설명
CombinePath ( string dir, string file ) : string
CreateDirectory ( string directory ) : void
CreateFileStream ( string filename, FileMode mode, FileAccess access ) : Stream
CreateStreamReader ( string filename ) : TextReader
CreateStreamWriter ( Stream stm, Encoding encoding ) : TextWriter
DeleteDirectory ( string directory ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string dirPath ) : bool
FileExists ( string filePath ) : bool
GetDirectoryName ( string filePath ) : string
GetFileName ( string filePath ) : string
GetFileSystemEntries ( string dirPath ) : string[]
GetFullPath ( string file ) : string
ReadFile ( string path ) : string
ReadFileBytes ( string path ) : byte[]
WriteFile ( string path, string contents ) : void
getContentHash ( byte fileContents ) : string
getFileHash ( string path ) : string
getSystemTempDir ( ) : string
makePathString ( ) : string
relPath ( string path1, string path2 ) : string

메소드 상세

CombinePath() 공개 메소드

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

CreateDirectory() 공개 메소드

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

CreateFileStream() 공개 메소드

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

CreateStreamReader() 공개 메소드

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

CreateStreamWriter() 공개 메소드

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

DeleteDirectory() 공개 메소드

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

DeleteFile() 공개 메소드

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

DirectoryExists() 공개 메소드

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

FileExists() 공개 메소드

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

GetDirectoryName() 공개 메소드

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

GetFileName() 공개 메소드

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

GetFileSystemEntries() 공개 메소드

public GetFileSystemEntries ( string dirPath ) : string[]
dirPath 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

getContentHash() 공개 정적인 메소드

public static getContentHash ( byte fileContents ) : string
fileContents byte
리턴 string

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