IFileCleaner Interface
Cleans files and folders from the file system, usually before or after an execution using the CleanMode setting.
Namespace
Statiq.Common
Implementing Types
IFileCleaner
FileCleaner
TestFileCleaner

Syntax

public interface IFileCleaner

Properties

Name Property Type Summary
CleanMode CleanMode
The currently set clean mode.

Methods

Name Return Value Summary
CleanAfterExecutionAsync() Task
Performs post-execution clean up.
CleanBeforeExecutionAsync() Task
Performs pre-execution clean up.
CleanDirectory(IDirectory, string) void
Recursively deletes a directory and then recreates it.

Extension Methods