Summary
Moves existing files to a new location.
- Namespace
- Cake
.Common .IO - Containing Type
- FileAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Move")]
public static void MoveFiles(this ICakeContext context, IEnumerable<FilePath> filePaths, DirectoryPath targetDirectoryPath)
Examples
var files = GetFiles("./publish/Cake.*");
MoveFiles(files, "destination");
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used to mark script method aliases. |
| Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| filePaths | IEnumerable |
The file paths. |
| targetDirectoryPath | DirectoryPath | The target directory path. |
Return Value
| Type | Description |
|---|---|
| void |
