C# Class TVSorter.Wrappers.DirectoryInfoWrap

A wrapper for the DirectoryInfo class.
Inheritance: IDirectoryInfo
显示文件 Open project: a-jackson/tvsorter Class Usage Examples

Public Methods

Method Description
Create ( ) : void

Creates the directory.

CreateFile ( string name ) : IFileInfo

Creates a file under this directory.

Delete ( bool recursive ) : void

Deletes the directory.

DirectoryInfoWrap ( DirectoryInfo directoryInfo ) : System.IO

Initializes a new instance of the DirectoryInfoWrap class.

DirectoryInfoWrap ( string path ) : System.IO

Initializes a new instance of the DirectoryInfoWrap class.

GetDirectories ( ) : IDirectoryInfo[]

Gets the sub directories of this directory.

GetFile ( string outputPath ) : IFileInfo

Gets a sub file of the directory at the specified path.

GetFiles ( ) : IFileInfo[]

Gets the files of this directory.

ToString ( ) : string

Returns a string that represents the current object.

Private Methods

Method Description
ConvertDirectoryInfoToIDirectoryInfo ( DirectoryInfo directoryInfos ) : IDirectoryInfo[]

Converts an array of DirectoryInfo into an array of IDirectoryInfo.

Method Details

Create() public method

Creates the directory.
public Create ( ) : void
return void

CreateFile() public method

Creates a file under this directory.
public CreateFile ( string name ) : IFileInfo
name string /// The name of the file to create. ///
return IFileInfo

Delete() public method

Deletes the directory.
public Delete ( bool recursive ) : void
recursive bool /// A value indicating whether the deletion should be recursive. ///
return void

DirectoryInfoWrap() public method

Initializes a new instance of the DirectoryInfoWrap class.
public DirectoryInfoWrap ( DirectoryInfo directoryInfo ) : System.IO
directoryInfo System.IO.DirectoryInfo /// The directory info. ///
return System.IO

DirectoryInfoWrap() public method

Initializes a new instance of the DirectoryInfoWrap class.
public DirectoryInfoWrap ( string path ) : System.IO
path string /// The path. ///
return System.IO

GetDirectories() public method

Gets the sub directories of this directory.
public GetDirectories ( ) : IDirectoryInfo[]
return IDirectoryInfo[]

GetFile() public method

Gets a sub file of the directory at the specified path.
public GetFile ( string outputPath ) : IFileInfo
outputPath string /// The path toget the file for. ///
return IFileInfo

GetFiles() public method

Gets the files of this directory.
public GetFiles ( ) : IFileInfo[]
return IFileInfo[]

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string