FakeDirectory.

Delete(bool) Method

Summary

Deletes the directory.
Namespace
Cake.Testing
Containing Type
FakeDirectory

Syntax

public void Delete(bool recursive)

Examples

var dir = context.FileSystem.GetDirectory("./artifacts");
dir.Delete(recursive: true);

Parameters

Name Type Description
recursive bool Will perform a recursive delete if set to true.

Return Value

Type Description
void