FileAliases.

MoveFiles(ICakeContext, GlobPattern, DirectoryPath) Method

Summary

Moves existing files matching the specified pattern to a new location.
Namespace
Cake.Common.IO
Containing Type
FileAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Move")]
public static void MoveFiles(this ICakeContext context, GlobPattern pattern, DirectoryPath targetDirectoryPath)

Examples

MoveFiles("./publish/Cake.*", "./destination");

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
pattern GlobPattern The pattern.
targetDirectoryPath DirectoryPath The target directory path.

Return Value

Type Description
void