GetCacheDirectory(IReadOnlyFileSystem, NormalizedPath) Method
Gets a directory representing cache files.
Namespace
Statiq.Common
Containing Type
IReadOnlyFileSystemExtensions

Syntax

public static IDirectory GetCacheDirectory(this IReadOnlyFileSystem fileSystem, in NormalizedPath path)

Parameters

Name Type Description
fileSystem IReadOnlyFileSystem The file system.
path NormalizedPath The path of the cache directory. If this is an absolute path, then a directory representing the specified path is returned. If it's a relative path, then it will be combined with the current cache path. If this is null then the base cache directory is returned.

Return Value

Type Description
IDirectory A cache directory.