INNER CODE UNIT · C
result
spheredev/neosphere · src/cell/build.c:724
result = fs_fcopy(s_build->fs, target_path, source_path, true);
if (result == 0) {
// touch file to prevent "target file unchanged" warning
fs_utime(s_build->fs, target_path, NULL);
}
jsal_push_boolean(result == 0);
return true;
}
static void
make_file_targets(fs_t* fs, const char* wildcard, const path_t* path, const path_t* subdir_path, vector_t* targets, bool recursive, time_t timestamp)
{
// note: 'targets' should be a vector_t initialized to sizeof(target_t*).
path_t* file_path;
bool ignore_dir;
vector_t* list;
path_t* name;