Recursively deletes a directory and then recreates it.
- Namespace
- Statiq
.Common - Containing Type
- IFileCleaner
Syntax
void CleanDirectory(IDirectory directory, string name = null)
Parameters
| Name | Type | Description |
|---|---|---|
| directory | IDirectory | The directory to clean. |
| name | string | A name for logging purposes. |