mmFileUtils.CopyDirectory

Copies a directory, and its files. Creates the top level directory if it doesn't exist

public static string CopyDirectory(string sourceDirectory,
	string targetDirectory,
	bool deleteFirst,
	bool recursive)

Return Value

null on success or error string of files and errors that failed

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 mmFileUtils

© West Wind Technologies, 2016-2023 • Updated: 11/23/21
Comment or report problem with topic