Click or drag to resize

FileSystemCopyDir Method

Copies a directory with all its content to another location.

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public static void CopyDir(
	string sourceDir,
	string targetDir,
	bool subDirs,
	string[] excludeDirs = null,
	string[] excludeFiles = null
)

Parameters

sourceDir
Type: SystemString
A path to the source directory.
targetDir
Type: SystemString
A path to the target directory.
subDirs
Type: SystemBoolean
true if subdirectories are copied recursively; otherwise false.
excludeDirs (Optional)
Type: SystemString
An array with directory names to exclude during copying.
excludeFiles (Optional)
Type: SystemString
An array with file names to exclude during the copying.
See Also