Summary
Copies existing files to a new location.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Copy")]
public static void CopyFiles(this ICakeContext context, IEnumerable<string> filePaths, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
Examples
CreateDirectory("destination");
var files = new [] {
"Cake.exe",
"Cake.pdb"
};
CopyFiles(files, "destination");
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
filePaths |
IEnumerable<string> |
The file paths. |
targetDirectoryPath |
DirectoryPath |
The target directory path. |
preserveFolderStructure |
bool |
Keep the folder structure. |
Return Value