C# Class FluentFs.Support.FileSystemWrapper

Inheritance: IFileSystemWrapper
显示文件 Open project: SkightTeam/eLiteWeb

Public Methods

Method Description
Copy ( string source, string destination ) : void
CreateDirectory ( string path ) : void
DeleteDirectory ( string path, bool recursive ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
FileExists ( string path ) : bool
GetDirectories ( string directory ) : IEnumerable
GetFilesIn ( string directory ) : IEnumerable
MoveFile ( string origin, string destination ) : void
ReadAllText ( string path ) : string
WriteAllText ( string destination, string input ) : void

Method Details

Copy() public method

public Copy ( string source, string destination ) : void
source string
destination string
return void

CreateDirectory() public method

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

DeleteDirectory() public method

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
return void

DeleteFile() public method

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

DirectoryExists() public method

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

FileExists() public method

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

GetDirectories() public method

public GetDirectories ( string directory ) : IEnumerable
directory string
return IEnumerable

GetFilesIn() public method

public GetFilesIn ( string directory ) : IEnumerable
directory string
return IEnumerable

MoveFile() public method

public MoveFile ( string origin, string destination ) : void
origin string
destination string
return void

ReadAllText() public method

public ReadAllText ( string path ) : string
path string
return string

WriteAllText() public method

public WriteAllText ( string destination, string input ) : void
destination string
input string
return void