fn populateFileHash(self: *Manifest, ch_file: *File) !void 890
891
892
893
894
895
896
897
898
899
900
901
902 fn populateFileHash(self: *Manifest, ch_file: *File) !void {
const io = self.cache.io;
if (ch_file.handle) |handle| {
return populateFileHashHandle(self, ch_file, handle);
} else {
const pp = ch_file.prefixed_path;
const dir = self.cache.prefixes()[pp.prefix].handle;
const handle = try dir.openFile(io, pp.sub_path, .{});
defer handle.close(io);
return populateFileHashHandle(self, ch_file, handle);
}
}