Summary
Copies all files matching the provided pattern to a new location.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Copy")]
public static void CopyFiles(this ICakeContext context, GlobPattern pattern, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
Examples
CopyFiles("Cake.*", "./publish");
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
pattern |
GlobPattern |
The pattern. |
targetDirectoryPath |
DirectoryPath |
The target directory path. |
preserveFolderStructure |
bool |
Keep the folder structure. |
Return Value