feature. See also
. The project being documented here (as the example) is the Zig library itself.
Maker.installPath
pub fn installPath(
maker: *Maker,
arena: Allocator,
src_path: Path,
dest_path: Path,
asking_step_index: Configuration.Step.Index,
) Step.ExtendedMakeError!Dir.PrevStatus
File
Code
pub fn installPath(
maker: *Maker,
arena: Allocator,
src_path: Path,
dest_path: Path,
asking_step_index: Configuration.Step.Index,
) Step.ExtendedMakeError!Dir.PrevStatus {
const graph = maker.graph;
const io = graph.io;
if (graph.verbose) try graph.handleVerbose(null, null, &.{
"install", "-C", try src_path.toString(arena), try dest_path.toString(arena),
});
return Dir.updateFile(
src_path.root_dir.handle,
io,
src_path.sub_path,
dest_path.root_dir.handle,
dest_path.sub_path,
.{},
) catch |err| {
const s = stepByIndex(maker, asking_step_index);
return s.fail(maker, "failed updating file from {f} to {f}: {t}", .{ src_path, dest_path, err });
};
}