C# Class FluentFs.Core.Directory

Represents a folder
Exibir arquivo Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method 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

Method Description
Directory ( IFileSystemWrapper fileSystemWrapper, IFileSetFactory fileSetFactory, string path ) : System.IO

Method Details

Create() public method

Creates the folder
public Create ( ) : Directory
return Directory

Create() public method

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

Delete() public method

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

Delete() public method

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

Directory() public method

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

File() public method

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

Files() public method

Gets all files in a directory
public Files ( ) : Core.FileSet
return Core.FileSet

Files() public method

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

SubFolder() public method

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
return Directory

ToString() public method

Provides the current path internal to the Directory object
public ToString ( ) : string
return string