Click or drag to resize

Utils_FileCopyDirectoryContent Method (String, String, Boolean)

Copies the content of a directory to another.

This is done recursively but the code is not recurcive.

All directories are ensured first, then all files are copied.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static void CopyDirectoryContent(
	string sourcePath,
	string destinationPath,
	bool overwrite
)

Parameters

sourcePath
Type: SystemString
Folder where the content to copy is located.
destinationPath
Type: SystemString
Folder where the content must be copied. If this folder does not exist, it will be created.
overwrite
Type: SystemBoolean
Specifies, if an existing file is found at the target location of a copied file, if it must be overwritten.
See Also