Summary
Deletes the specified directory if it exists.
- Namespace
- Cake
.Common .IO - Containing Type
- DirectoryAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("DoesNotExist")]
public static void EnsureDirectoryDoesNotExist(this ICakeContext context, DirectoryPath path, DeleteDirectorySettings settings)
Examples
EnsureDirectoryDoesNotExist("./be/gone", new DeleteDirectorySettings {
Recursive = true,
Force = true
});
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. |
path | DirectoryPath | The directory path. |
settings | Delete |
The delete settings. |
Return Value
Type | Description |
---|---|
void |