Lines Matching refs:Path
23 static long GetEpoch(const std::string &Path) { in GetEpoch() argument
25 if (stat(Path.c_str(), &St)) in GetEpoch()
51 Unit FileToVector(const std::string &Path) { in FileToVector() argument
52 std::ifstream T(Path); in FileToVector()
54 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
61 std::string FileToString(const std::string &Path) { in FileToString() argument
62 std::ifstream T(Path); in FileToString()
67 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
68 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
71 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
73 FILE *Out = fopen(Path.c_str(), "w"); in WriteToFile()
79 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, in ReadDirToVectorOfUnits() argument
82 for (auto &X : ListFilesInDir(Path, Epoch)) { in ReadDirToVectorOfUnits()
83 auto FilePath = DirPlusFile(Path, X); in ReadDirToVectorOfUnits()