C# Class TVSorter.Files.FileManager

The file manager.
显示文件 Open project: a-jackson/tvsorter Class Usage Examples

Public Methods

Method Description
CopyFile ( IEnumerable files ) : void

Performs a copy file operation.

MoveFile ( IEnumerable files ) : void

Performs a move file operation on the specified files.

Private Methods

Method Description
DeleteEmptySubdirectories ( FileResult file ) : void

Deletes the subdirectories of the file if they are empty.

FileManager ( IStorageProvider storageProvider, IDataProvider dataProvider ) : System.Collections.Generic

Initializes a new instance of the FileManager class. Initialises a new instance of the FileManager class.

HandleRenameAndOverwrite ( FileResult file, IDirectoryInfo destination, IFileInfo &destinationInfo ) : bool

Handles the rename and overwrite of the file.

ProcessFile ( SortType type, FileResult file, IDirectoryInfo destination ) : void

Processes a single file.

ProcessFiles ( IEnumerable files, SortType type, IDirectoryInfo defaultDestination ) : void

Processes the specified list of files.

Method Details

CopyFile() public method

Performs a copy file operation.
public CopyFile ( IEnumerable files ) : void
files IEnumerable /// The files to copy. ///
return void

MoveFile() public method

Performs a move file operation on the specified files.
public MoveFile ( IEnumerable files ) : void
files IEnumerable /// The files to move. ///
return void