HH\Facts\extract
For each path/hash pair in $pathsAndHashes
, parse the file on the
filesystem, or lookup the file with the given SHA1 hash, and return a dict
mapping each path to its contents
namespace HH\Facts;
function extract(
vec<(?string)> $pathsAndHashes,
?string $root = NULL,
): dict<string, ?FileData>;
Each given path should be relative to the given $root
.
Parameters
vec<(?string)> $pathsAndHashes
?string $root = NULL
Returns
dict<string, ?FileData>