C# Class FluentFs.Core.Directory

Represents a folder
Afficher le fichier Open project: SkightTeam/eLiteWeb Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
Directory ( IFileSystemWrapper fileSystemWrapper, IFileSetFactory fileSetFactory, string path ) : System.IO

Method Details

Create() public méthode

Creates the folder
public Create ( ) : Directory
Résultat Directory

Create() public méthode

Creates the folder
public Create ( OnError onError ) : Directory
onError OnError Allows you to set the error behavior
Résultat Directory

Delete() public méthode

Deletes the folder. If the the folder can not be deleted, or does not exist then an exception is thrown.
public Delete ( ) : Directory
Résultat Directory

Delete() public méthode

Deletes the folder.
public Delete ( OnError onError ) : Directory
onError OnError Sets the behavior of how to handle an error
Résultat Directory

Directory() public méthode

Creates a new Directory object
public Directory ( string path ) : System.IO
path string Path to the folder
Résultat System.IO

File() public méthode

Appends a filename onto the Directory
public File ( string name ) : File
name string The name (or filter) of the file
Résultat File

Files() public méthode

Gets all files in a directory
public Files ( ) : Core.FileSet
Résultat Core.FileSet

Files() public méthode

Creates a fileset based on a filter
public Files ( string filter ) : Core.FileSet
filter string A filter that can contain wildcards
Résultat Core.FileSet

SubFolder() public méthode

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

ToString() public méthode

Provides the current path internal to the Directory object
public ToString ( ) : string
Résultat string