INNER CODE UNIT · C

source_path

spheredev/neosphere · src/cell/build.c:722

	source_path = jsal_require_string(-1);

	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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…