C# Class Pytocs.TypeInference.FileSystem

Inheritance: IFileSystem
Show file Open project: uxmal/pytocs

Public Methods

Method Description
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

Method Details

CombinePath() public method

public CombinePath ( string dir, string file ) : string
dir string
file string
return string

CreateDirectory() public method

public CreateDirectory ( string directory ) : void
directory string
return void

CreateFileStream() public method

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

CreateStreamReader() public method

public CreateStreamReader ( string filename ) : TextReader
filename string
return TextReader

CreateStreamWriter() public method

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

DeleteDirectory() public method

public DeleteDirectory ( string directory ) : void
directory string
return void

DeleteFile() public method

public DeleteFile ( string path ) : void
path string
return void

DirectoryExists() public method

public DirectoryExists ( string dirPath ) : bool
dirPath string
return bool

FileExists() public method

public FileExists ( string filePath ) : bool
filePath string
return bool

GetDirectoryName() public method

public GetDirectoryName ( string filePath ) : string
filePath string
return string

GetFileName() public method

public GetFileName ( string filePath ) : string
filePath string
return string

GetFileSystemEntries() public method

public GetFileSystemEntries ( string dirPath ) : string[]
dirPath string
return string[]

GetFullPath() public method

public GetFullPath ( string file ) : string
file string
return string

ReadFile() public method

public ReadFile ( string path ) : string
path string
return string

ReadFileBytes() public method

public ReadFileBytes ( string path ) : byte[]
path string
return byte[]

WriteFile() public method

public WriteFile ( string path, string contents ) : void
path string
contents string
return void

getContentHash() public static method

public static getContentHash ( byte fileContents ) : string
fileContents byte
return string

getFileHash() public method

public getFileHash ( string path ) : string
path string
return string

getSystemTempDir() public method

public getSystemTempDir ( ) : string
return string

makePathString() public method

public makePathString ( ) : string
return string

relPath() public method

public relPath ( string path1, string path2 ) : string
path1 string
path2 string
return string