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