C# Класс NuDeploy.Core.Common.FilesystemAccess.PhysicalFilesystemAccessor

Наследование: IFilesystemAccessor
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CopyFile ( string sourceFilePath, string targetPath ) : bool
CreateDirectory ( string path ) : bool
DeleteDirectory ( string folderPath ) : bool
DeleteFile ( string filePath ) : bool
DirectoryExists ( string directoryPath ) : bool
EnsureParentDirectoryExists ( string filePath ) : bool
FileExists ( string filePath ) : bool
GetAllFiles ( string path ) : IEnumerable
GetFileContent ( string filePath ) : string
GetFiles ( string path ) : IEnumerable
GetReadStream ( string filePath ) : Stream
GetSubDirectories ( string path ) : IEnumerable
GetTextReader ( string filePath ) : TextReader
GetTextWriter ( string filePath ) : TextWriter
GetWriteStream ( string filePath ) : Stream
MoveFile ( string sourceFilePath, string targetFilePath ) : bool
PhysicalFilesystemAccessor ( IEncodingProvider encodingProvider ) : System
WriteContentToFile ( string content, string filePath ) : bool

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

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

public CopyFile ( string sourceFilePath, string targetPath ) : bool
sourceFilePath string
targetPath string
Результат bool

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

public CreateDirectory ( string path ) : bool
path string
Результат bool

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

public DeleteDirectory ( string folderPath ) : bool
folderPath string
Результат bool

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

public DeleteFile ( string filePath ) : bool
filePath string
Результат bool

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

public DirectoryExists ( string directoryPath ) : bool
directoryPath string
Результат bool

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

public EnsureParentDirectoryExists ( string filePath ) : bool
filePath string
Результат bool

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

public FileExists ( string filePath ) : bool
filePath string
Результат bool

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

public GetAllFiles ( string path ) : IEnumerable
path string
Результат IEnumerable

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

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

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

public GetFiles ( string path ) : IEnumerable
path string
Результат IEnumerable

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

public GetReadStream ( string filePath ) : Stream
filePath string
Результат Stream

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

public GetSubDirectories ( string path ) : IEnumerable
path string
Результат IEnumerable

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

public GetTextReader ( string filePath ) : TextReader
filePath string
Результат TextReader

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

public GetTextWriter ( string filePath ) : TextWriter
filePath string
Результат TextWriter

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

public GetWriteStream ( string filePath ) : Stream
filePath string
Результат Stream

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

public MoveFile ( string sourceFilePath, string targetFilePath ) : bool
sourceFilePath string
targetFilePath string
Результат bool

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

public PhysicalFilesystemAccessor ( IEncodingProvider encodingProvider ) : System
encodingProvider IEncodingProvider
Результат System

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

public WriteContentToFile ( string content, string filePath ) : bool
content string
filePath string
Результат bool