Lines Matching defs:path
38 int Cleaner::RemoveFile(const string& path) {
39 return disk_interface_->RemoveFile(path);
42 bool Cleaner::FileExists(const string& path) {
44 TimeStamp mtime = disk_interface_->Stat(path, &err);
50 void Cleaner::Report(const string& path) {
53 printf("Remove %s\n", path.c_str());
56 void Cleaner::Remove(const string& path) {
57 if (!IsAlreadyRemoved(path)) {
58 removed_.insert(path);
60 if (FileExists(path))
61 Report(path);
63 int ret = RemoveFile(path);
65 Report(path);
72 bool Cleaner::IsAlreadyRemoved(const string& path) {
73 set<string>::iterator i = removed_.find(path);
118 Remove((*out_node)->path());
154 Remove(target->path());
203 Error("failed to canonicalize '': empty path");
231 Remove((*out_node)->path());