INNER CODE UNIT · C
in_path
spheredev/neosphere · src/cell/build.c:527
in_path = path_new(*(const char**)iter.ptr);
if (path_num_hops(in_path) == 0 || !path_hop_is(in_path, 0, "@") || !path_is_file(in_path)) {
path_free(in_path);
continue;
}
out_path = path_dup(in_path);
path_remove_hop(out_path, 0);
visor_begin_op(build->visor, "packaging '%s'", path_cstr(out_path));
spk_add_file(spk, build->fs, path_cstr(in_path), path_cstr(out_path));
path_free(out_path);
visor_end_op(build->visor);
}
if (build->debuggable)
spk_add_file(spk, build->fs, "@/artifacts.json", "artifacts.json");
spk_close(spk);
visor_end_op(build->visor);
return true;
}