Home | History | Annotate | Download | only in atree

Lines Matching full:path

19 is_dir(const string& path)
23 err = stat(path.c_str(), &st);
28 remove_file(const string& path)
30 int err = unlink(path.c_str());
32 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(),
40 remove_recursively(const string& path)
44 if (is_dir(path)) {
45 DIR *d = opendir(path.c_str());
48 path.c_str(), strerror(errno));
61 string full = path;
94 err = rmdir(path.c_str());
96 fprintf(stderr, "error deleting directory %s (%s)\n", path.c_str(),
102 return remove_file(path);
107 mkdir_recursively(const string& path)
112 pos = path.find('/', pos);
113 string p = path.substr(0, pos);
120 path.c_str(), strerror(errno));
126 path.c_str(), p.c_str());
130 if (p == path) {