Summary
Contains extension methods for working with directories.
- Namespace
- Cake
.Common .IO - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["DirectoryAliases"]
class Type type-node
Syntax
[CakeAliasCategory("Directory Operations")]
public static class DirectoryAliases
Attributes
Type | Description |
---|---|
Cake |
An attribute used for documentation of alias methods/properties. |
Methods
Name | Value | Summary |
---|---|---|
CleanDirectories |
void |
Cleans the directories matching the specified pattern.
Cleaning the directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the directories matching the specified pattern.
Cleaning the directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the directories matching the specified pattern.
Cleaning the directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the directories matching the specified pattern.
Cleaning the directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
static
|
CleanDirectories |
void |
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
static
|
CleanDirectory |
void |
Cleans the specified directory.
static
|
CleanDirectory |
void |
Cleans the specified directory.
static
|
CleanDirectory |
void |
Cleans the specified directory.
static
|
CleanDirectory |
void |
Cleans the specified directory.
static
|
CopyDirectory |
void |
Copies the contents of a directory, including subdirectories to the specified location.
static
|
CreateDirectory |
void |
Creates the specified directory.
static
|
DeleteDirectories |
void |
Deletes the specified directories.
static
|
DeleteDirectories |
void |
Deletes the specified directories.
static
|
DeleteDirectory |
void |
Deletes the specified directory.
static
|
Directory |
Convertable |
Gets a directory path from string.
static
|
DirectoryExists |
bool |
Determines whether the given path refers to an existing directory.
static
|
Ensure |
void |
Deletes the specified directory if it exists.
static
|
Ensure |
void |
Deletes the specified directory if it exists.
static
|
Ensure |
void |
Deletes the specified directory and its contents if it exists.
static
|
Ensure |
void |
Creates the specified directory if it does not exist.
static
|
Expand |
DirectoryPath |
Expands all environment variables in the provided
DirectoryPath .
static
|
GetSubDirectories |
Directory |
Gets a list of all the directories inside a directory.
static
|
MakeAbsolute |
DirectoryPath |
Makes the path absolute (if relative) using the current working directory.
static
|
MakeRelative |
DirectoryPath |
Makes the directory path relative (if absolute) to a specified root directory. If no root directory is defined
the current working directory is used as default root.
static
|
MakeRelative |
FilePath |
Makes the file path relative (if absolute) to a specified root directory. If no root directory is defined
the current working directory is used as default root.
static
|
MoveDirectory |
void |
Moves an existing directory to a new location, providing the option to specify a new directory name.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|