DirectoryAliases.

MoveDirectory(ICakeContext, DirectoryPath, DirectoryPath) Method

Summary

Moves an existing directory to a new location, providing the option to specify a new directory name.
Namespace
Cake.Common.IO
Containing Type
DirectoryAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Move")]
public static void MoveDirectory(this ICakeContext context, DirectoryPath directoryPath, DirectoryPath targetDirectoryPath)

Examples

MoveDirectory("mydir", "newparent/newdir");

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.
directoryPath DirectoryPath The directory path.
targetDirectoryPath DirectoryPath The target directory path.

Return Value

Type Description
void