Copies directories using either top level only or deep merge copy.
Copies a directory by copying files from source folder to target folder. If folder(s) don't exist they are created.
public static void CopyDirectory(string sourceDirectory, string targetDirectory, bool deleteFirst, bool recursive)
Parameters
sourceDirectory
Source folder
targetDirectory
Target folder
deleteFirst
if set deletes the folder before copying
recursive
if set copies files recursively
Overloads:
See also:
Class FileUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic