C# Class FluentFs.Core.File

Represents a file used or created in a build
Show file Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method Description
Delete ( ) : void

Deletes the file If the file does not exist no error will be thrown (even if OnError is set to fail)

Delete ( OnError onError ) : void

Deletes the file If the file does not exist no error will be thrown (even if OnError is set to fail) Sets wether to fail or continue if an error occurs

File ( string path ) : FluentFs.Support

FileName ( ) : string

Returns only the file name of the build artifact

ToString ( ) : string

Private Methods

Method Description
File ( IFileSystemWrapper fileSystemWrapper, string path ) : FluentFs.Support

Method Details

Delete() public method

Deletes the file If the file does not exist no error will be thrown (even if OnError is set to fail)
public Delete ( ) : void
return void

Delete() public method

Deletes the file If the file does not exist no error will be thrown (even if OnError is set to fail) Sets wether to fail or continue if an error occurs
public Delete ( OnError onError ) : void
onError OnError
return void

File() public method

public File ( string path ) : FluentFs.Support
path string Path to the file
return FluentFs.Support

FileName() public method

Returns only the file name of the build artifact
public FileName ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string