C# Class CmisSync.Lib.Storage.FileSystem.DirectoryInfoWrapper

Wrapper for DirectoryInfo
Inheritance: FileSystemInfoWrapper, IDirectoryInfo
ファイルを表示 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
Create ( ) : void

Passes the Create call to the original instance.

Delete ( bool recursive ) : void

Passes the Delete call to the originial instance.

DirectoryInfoWrapper ( DirectoryInfo directoryInfo ) : System.IO

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.DirectoryInfoWrapper class. Uses the given real instance and passes every future call to this instance.

GetDirectories ( ) : IDirectoryInfo[]

Gets the directories of the original instance wrapped by new DirectoryInfoWrapper instances.

GetFiles ( ) : IFileInfo[]

Gets the files of the original instance wrapped by new FileInfoWrapper instances.

MoveTo ( string destDirName ) : void

Moves the directory to the destination directory path by using the original instance.

ToString ( ) : string

Returns a System.String that represents the current CmisSync.Lib.Storage.FileSystem.DirectoryInfoWrapper.

Method Details

Create() public method

Passes the Create call to the original instance.
public Create ( ) : void
return void

Delete() public method

Passes the Delete call to the originial instance.
public Delete ( bool recursive ) : void
recursive bool If set to true recursive.
return void

DirectoryInfoWrapper() public method

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.DirectoryInfoWrapper class. Uses the given real instance and passes every future call to this instance.
public DirectoryInfoWrapper ( DirectoryInfo directoryInfo ) : System.IO
directoryInfo System.IO.DirectoryInfo Directory info.
return System.IO

GetDirectories() public method

Gets the directories of the original instance wrapped by new DirectoryInfoWrapper instances.
public GetDirectories ( ) : IDirectoryInfo[]
return IDirectoryInfo[]

GetFiles() public method

Gets the files of the original instance wrapped by new FileInfoWrapper instances.
public GetFiles ( ) : IFileInfo[]
return IFileInfo[]

MoveTo() public method

Moves the directory to the destination directory path by using the original instance.
public MoveTo ( string destDirName ) : void
destDirName string Destination directory path.
return void

ToString() public method

Returns a System.String that represents the current CmisSync.Lib.Storage.FileSystem.DirectoryInfoWrapper.
public ToString ( ) : string
return string