C# 클래스 TVSorter.Wrappers.DirectoryInfoWrap

A wrapper for the DirectoryInfo class.
상속: IDirectoryInfo
파일 보기 프로젝트 열기: a-jackson/tvsorter 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
ConvertDirectoryInfoToIDirectoryInfo ( DirectoryInfo directoryInfos ) : IDirectoryInfo[]

Converts an array of DirectoryInfo into an array of IDirectoryInfo.

메소드 상세

Create() 공개 메소드

Creates the directory.
public Create ( ) : void
리턴 void

CreateFile() 공개 메소드

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

Delete() 공개 메소드

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

DirectoryInfoWrap() 공개 메소드

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

DirectoryInfoWrap() 공개 메소드

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

GetDirectories() 공개 메소드

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

GetFile() 공개 메소드

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

GetFiles() 공개 메소드

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

ToString() 공개 메소드

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