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
graph BT Type["IFileCleaner"] class Type type-node Implementing0["FileCleaner"]-.->Type click Implementing0 "/api/Statiq.Core/FileCleaner" Implementing1["TestFileCleaner"]-.->Type click Implementing1 "/api/Statiq.Testing/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