Summary
Contains functionality related to file operations.
- Namespace
- Cake
.Common .IO - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["FileAliases"]
class Type type-node
Syntax
[CakeAliasCategory("File Operations")]
public static class FileAliases
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used for documentation of alias methods/properties. |
Methods
| Name | Value | Summary |
|---|---|---|
| CopyFile |
void |
Copies an existing file to a new file, providing the option to specify a new file name.
static
|
| CopyFiles |
void |
Copies all files matching the provided pattern to a new location.
static
|
| CopyFiles |
void |
Copies all files matching the provided pattern to a new location.
static
|
| CopyFiles |
void |
Copies existing files to a new location.
static
|
| CopyFiles |
void |
Copies existing files to a new location.
static
|
| CopyFiles |
void |
Copies existing files to a new location.
static
|
| CopyFiles |
void |
Copies existing files to a new location.
static
|
| CopyFileToDirectory |
void |
Copies an existing file to a new location.
static
|
| DeleteFile |
void |
Deletes the specified file.
static
|
| DeleteFiles |
void |
Deletes the specified files.
static
|
| DeleteFiles |
void |
Deletes the specified files.
static
|
| Expand |
FilePath |
Expands all environment variables in the provided
FilePath.
static
|
| File |
ConvertableFilePath |
Gets a file path from string.
static
|
| FileExists |
bool |
Determines whether the given path refers to an existing file.
static
|
| FileSize |
long |
Gets the size of a file in bytes.
static
|
| MakeAbsolute |
FilePath |
Makes the path absolute (if relative) using the current working directory.
static
|
| MoveFile |
void |
Moves an existing file to a new location, providing the option to specify a new file name.
static
|
| MoveFiles |
void |
Moves existing files matching the specified pattern to a new location.
static
|
| MoveFiles |
void |
Moves existing files to a new location.
static
|
| MoveFileToDirectory |
void |
Moves an existing file to a new location.
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
|
