Lines Matching refs:Path
26 long GetEpoch(const std::string &Path) {
28 if (stat(Path.c_str(), &St))
33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) {
34 std::ifstream T(Path);
36 Printf("No such directory: %s; exiting\n", Path.c_str());
51 std::string FileToString(const std::string &Path) {
52 std::ifstream T(Path);
57 void CopyFileToErr(const std::string &Path) {
58 Printf("%s", FileToString(Path).c_str());
61 void WriteToFile(const Unit &U, const std::string &Path) {
63 FILE *Out = fopen(Path.c_str(), "w");
69 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V,
73 ListFilesInDirRecursive(Path, Epoch, &Files, /*TopDir*/true);
80 Printf("Loaded %zd/%zd files from %s\n", NumLoaded, Files.size(), Path);