| 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
)
Public Shared Sub CopyDir (
sourceDir As String,
targetDir As String,
subDirs As Boolean,
Optional excludeDirs As String() = Nothing,
Optional excludeFiles As String() = Nothing
)
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