C# Класс FluentFs.Core.File

Represents a file used or created in a build
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
File ( IFileSystemWrapper fileSystemWrapper, string path ) : FluentFs.Support

Описание методов

Delete() публичный Метод

Deletes the file If the file does not exist no error will be thrown (even if OnError is set to fail)
public Delete ( ) : void
Результат void

Delete() публичный Метод

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
Результат void

File() публичный Метод

public File ( string path ) : FluentFs.Support
path string Path to the file
Результат FluentFs.Support

FileName() публичный Метод

Returns only the file name of the build artifact
public FileName ( ) : string
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string