Summary
Calculates the hash for a given directory using the default (SHA256) algorithm.
Syntax
[CakeMethodAlias]
public static DirectoryHash CalculateDirectoryHash(this ICakeContext context, IEnumerable<string> globs, DirectoryPath directoryPath)
Examples
Information(
"Cake It calculates the hashes from all cs files in all subdirectories using a SHA256 hash: {0}",
CalculateDirectoryHash("C:\directoryToHash", "./**/*.cs").ToHex());
Attributes
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| globs |
IEnumerable<string> |
The glob pattern to match. |
| directoryPath |
DirectoryPath |
The file path. |
Return Value