Lines Matching refs:Path
26 bool IsFile(const std::string &Path) { in IsFile() argument
28 if (stat(Path.c_str(), &St)) in IsFile()
33 static long GetEpoch(const std::string &Path) { in GetEpoch() argument
35 if (stat(Path.c_str(), &St)) in GetEpoch()
52 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive() local
54 V->push_back(Path); in ListFilesInDirRecursive()
56 ListFilesInDirRecursive(Path, Epoch, V, false); in ListFilesInDirRecursive()
63 Unit FileToVector(const std::string &Path, size_t MaxSize) { in FileToVector() argument
64 std::ifstream T(Path); in FileToVector()
66 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
81 std::string FileToString(const std::string &Path) { in FileToString() argument
82 std::ifstream T(Path); in FileToString()
87 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
88 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
91 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
93 FILE *Out = fopen(Path.c_str(), "w"); in WriteToFile()
99 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, in ReadDirToVectorOfUnits() argument
103 ListFilesInDirRecursive(Path, Epoch, &Files, /*TopDir*/true); in ReadDirToVectorOfUnits()
110 Printf("Loaded %zd/%zd files from %s\n", NumLoaded, Files.size(), Path); in ReadDirToVectorOfUnits()