Lines Matching refs:path
22 public function path($project_path) { function in ProjectFile
27 $path = $this->path($project_path);
28 if (file_exists($path)) {
30 unlink($path);
51 $path = $this->path($project_path);
52 $time = (file_exists($path)) ? filemtime($path) : NULL;
57 $path = $this->path($project_path);
58 if (file_exists($path))
59 return file_get_contents($path);
64 $path = $this->path($project_path);
65 if (is_link($path)) return;
75 list($ext, $mime) = mimetype($path);
76 $data[0] = $path;
99 $this->set_content($project->path(), $file->content());
111 file_put_contents($this->path($project_path), $content);
148 $path = $this->path($project_path) . '.make.log';
149 if (file_exists($path)) unlink($path);
156 $path = $working_path . $this->name;
158 if (file_exists($path)) unlink($path);
190 return $this->path($working_path) . '.make.log';
223 $path = explode(":", $this->crosslink);
224 $media = ($path[0] == '[media]');
225 if ($media) array_shift($path);
226 if (count($path) > 1 && $path[0] != PROJECTS_NAMESPACE) return NULL;
227 $id = implode(':', $path);
232 return $project->path($id);
236 $path = $working_path . $this->name;
237 if (!file_exists($path)) return NULL;
238 $lspath = lstat($path);
249 $path = $this->path($working_path);
252 if (file_exists($path)) unlink($path);
257 if (file_exists($path)) unlink($path);
258 symlink($link, $path);