C# Class FluentFs.Core.File

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

Méthodes publiques

Méthode 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

Méthode Description
File ( IFileSystemWrapper fileSystemWrapper, string path ) : FluentFs.Support

Method Details

Delete() public méthode

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

Delete() public méthode

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
Résultat void

File() public méthode

public File ( string path ) : FluentFs.Support
path string Path to the file
Résultat FluentFs.Support

FileName() public méthode

Returns only the file name of the build artifact
public FileName ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string