Lines Matching defs:Path
28 bool IsFile(const std::string &Path) {
30 if (stat(Path.c_str(), &St))
35 static bool IsDirectory(const std::string &Path) {
37 if (stat(Path.c_str(), &St))
42 size_t FileSize(const std::string &Path) {
44 if (stat(Path.c_str(), &St))
49 std::string Basename(const std::string &Path) {
50 size_t Pos = Path.rfind(GetSeparator());
51 if (Pos == std::string::npos) return Path;
52 assert(Pos < Path.size());
53 return Path.substr(Pos + 1);
68 std::string Path = DirPlusFile(Dir, E->d_name);
70 (E->d_type == DT_UNKNOWN && IsFile(Path)))
71 V->push_back(Path);
73 (E->d_type == DT_UNKNOWN && IsDirectory(Path))) &&
75 ListFilesInDirRecursive(Path, Epoch, V, false);
98 void RemoveFile(const std::string &Path) {
99 unlink(Path.c_str());