Lines Matching refs:dirPath
46 int32_t Store::FreeStore(const std::string &dirPath, const std::string &fileName) in FreeStore() argument
48 if (dirPath.empty() || fileName.empty()) { in FreeStore()
51 std::string path = dirPath + "/" + fileName; in FreeStore()
64 std::string dirPath = path + '/'; in CreateNewSpace() local
66 LOG(INFO) << "Create dir " << dirPath; in CreateNewSpace()
67 if (stat(dirPath.c_str(), &fileStat) == -1) { in CreateNewSpace()
72 if (MkdirRecursive(dirPath, S_IRWXU) != 0) { in CreateNewSpace()
81 if (GetFilesFromDirectory(dirPath, files) < 0) { in CreateNewSpace()
99 int32_t Store::WriteDataToStore(const std::string &dirPath, const std::string &fileName, in WriteDataToStore() argument
102 if (dirPath.empty()) { in WriteDataToStore()
107 pathTmp = dirPath + "/"; in WriteDataToStore()
131 int fdd = open(dirPath.c_str(), O_RDONLY | O_DIRECTORY); in WriteDataToStore()
140 int32_t Store::LoadDataFromStore(const std::string &dirPath, const std::string &fileName, in LoadDataFromStore() argument
143 LOG(INFO) << "Store base is " << dirPath << "/" << fileName; in LoadDataFromStore()
144 std::string path = dirPath; in LoadDataFromStore()