Lines Matching refs:Path
26 long GetEpoch(const std::string &Path) { in GetEpoch() argument
28 if (stat(Path.c_str(), &St)) in GetEpoch()
33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
34 std::ifstream T(Path, std::ios::binary); in FileToVector()
36 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
53 std::string FileToString(const std::string &Path) { in FileToString() argument
54 std::ifstream T(Path, std::ios::binary); in FileToString()
59 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
60 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
63 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
65 FILE *Out = fopen(Path.c_str(), "w"); in WriteToFile()
71 void ReadDirToVectorOfUnits(const char *Path, Vector<Unit> *V, in ReadDirToVectorOfUnits() argument
75 ListFilesInDirRecursive(Path, Epoch, &Files, /*TopDir*/true); in ReadDirToVectorOfUnits()
82 Printf("Loaded %zd/%zd files from %s\n", NumLoaded, Files.size(), Path); in ReadDirToVectorOfUnits()