Lines Matching full:path
21 is_dir(const string& path)
25 err = stat(path.c_str(), &st);
30 remove_file(const string& path)
32 int err = unlink(path.c_str());
34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(),
42 remove_recursively(const string& path)
46 if (is_dir(path)) {
47 DIR *d = opendir(path.c_str());
50 path.c_str(), strerror(errno));
63 string full = path;
89 err = rmdir(path.c_str());
91 fprintf(stderr, "error deleting directory %s (%s)\n", path.c_str(),
97 return remove_file(path);
102 mkdir_recursively(const string& path)
108 if (path.length() != 0 and path[0] == '/') pos++;
111 pos = path.find('/', pos);
112 string p = path.substr(0, pos);
119 path.c_str(), strerror(errno));
125 path.c_str(), p.c_str());
129 if (p == path) {
146 strip_file(const string& path)
175 return execlp(strip_cmd, strip_cmd, path.c_str(), (char *)NULL);
197 args[num_args] = path.c_str();