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

Represents a folder
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( ) : Directory

Creates the folder

Create ( OnError onError ) : Directory

Creates the folder

Delete ( ) : Directory

Deletes the folder. If the the folder can not be deleted, or does not exist then an exception is thrown.

Delete ( OnError onError ) : Directory

Deletes the folder.

Directory ( string path ) : System.IO

Creates a new Directory object

File ( string name ) : File

Appends a filename onto the Directory

Files ( ) : Core.FileSet

Gets all files in a directory

Files ( string filter ) : Core.FileSet

Creates a fileset based on a filter

SubFolder ( string path ) : Directory

Creates a new Directory object for a subdirectory

The folder does not need to exist to use this method

ToString ( ) : string

Provides the current path internal to the Directory object

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

Метод Описание
Directory ( IFileSystemWrapper fileSystemWrapper, IFileSetFactory fileSetFactory, string path ) : System.IO

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

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

Creates the folder
public Create ( ) : Directory
Результат Directory

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

Creates the folder
public Create ( OnError onError ) : Directory
onError OnError Allows you to set the error behavior
Результат Directory

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

Deletes the folder. If the the folder can not be deleted, or does not exist then an exception is thrown.
public Delete ( ) : Directory
Результат Directory

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

Deletes the folder.
public Delete ( OnError onError ) : Directory
onError OnError Sets the behavior of how to handle an error
Результат Directory

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

Creates a new Directory object
public Directory ( string path ) : System.IO
path string Path to the folder
Результат System.IO

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

Appends a filename onto the Directory
public File ( string name ) : File
name string The name (or filter) of the file
Результат File

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

Gets all files in a directory
public Files ( ) : Core.FileSet
Результат Core.FileSet

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

Creates a fileset based on a filter
public Files ( string filter ) : Core.FileSet
filter string A filter that can contain wildcards
Результат Core.FileSet

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

Creates a new Directory object for a subdirectory
The folder does not need to exist to use this method
public SubFolder ( string path ) : Directory
path string The subfolder below the current Directory
Результат Directory

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

Provides the current path internal to the Directory object
public ToString ( ) : string
Результат string