C# 클래스 FluentFs.Core.Directory

Represents a folder
파일 보기 프로젝트 열기: SkightTeam/eLiteWeb 1 사용 예제들

공개 메소드들

메소드 설명
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