C# Class NanoByte.Common.Storage.MoveDirectory

Moves the content of a directory to a new location preserving the original file modification times.
Inheritance: CopyDirectory
Afficher le fichier Open project: nano-byte/common

Méthodes publiques

Méthode Description
MoveDirectory ( string sourcePath, string destinationPath, bool preserveDirectoryTimestamps = true, bool overwrite = false ) : System

Creates a new directory move task.

Méthodes protégées

Méthode Description
CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
Execute ( ) : void

Method Details

CopyFile() protected méthode

protected CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
sourceFile System.IO.FileInfo
destinationFile System.IO.FileInfo
Résultat void

Execute() protected méthode

protected Execute ( ) : void
Résultat void

MoveDirectory() public méthode

Creates a new directory move task.
public MoveDirectory ( string sourcePath, string destinationPath, bool preserveDirectoryTimestamps = true, bool overwrite = false ) : System
sourcePath string The path of source directory. Must exist!
destinationPath string The path of the target directory. May exist. Must be empty if is false.
preserveDirectoryTimestamps bool true to preserve the modification times for directories as well; false to preserve only the file modification times.
overwrite bool Overwrite exisiting files and directories at the . This will even replace read-only files!
Résultat System