(root: string, path: string)
| 185 | * and return its hash instead. |
| 186 | */ |
| 187 | export function getFileHash(root: string, path: string): string { |
| 188 | return getFileInfo(root, path)?.hash ?? createHash("sha256").digest("hex"); |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Returns the information for the file at the specified path within the source |
no test coverage detected