Method CopyDirectory
CopyDirectory(string, string)
Copies source directory with entire content including sub-directories to the specified destination.
public static void CopyDirectory(string sourceDirectoryPath, string targetDirectoryPath)
Parameters
sourceDirectoryPath
stringSource directory path.
targetDirectoryPath
stringDestination directory path.
Exceptions
- ArgumentException
Throws an ArgumentException if the source directory does not exist.