C# 클래스 NanoByte.Common.Storage.MoveDirectory

Moves the content of a directory to a new location preserving the original file modification times.
상속: CopyDirectory
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
MoveDirectory ( string sourcePath, string destinationPath, bool preserveDirectoryTimestamps = true, bool overwrite = false ) : System

Creates a new directory move task.

보호된 메소드들

메소드 설명
CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
Execute ( ) : void

메소드 상세

CopyFile() 보호된 메소드

protected CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
sourceFile System.IO.FileInfo
destinationFile System.IO.FileInfo
리턴 void

Execute() 보호된 메소드

protected Execute ( ) : void
리턴 void

MoveDirectory() 공개 메소드

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!
리턴 System