Summary
Copies the contents of a directory, including subdirectories to the specified location.
- Namespace
- Cake
.Common .IO - Containing Type
- DirectoryAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Copy")]
public static void CopyDirectory(this ICakeContext context, DirectoryPath source, DirectoryPath destination)
Examples
CopyDirectory("source_path", "destination_path");
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. |
source | DirectoryPath | The source directory path. |
destination | DirectoryPath | The destination directory path. |
Return Value
Type | Description |
---|---|
void |