Lines Matching refs:dirPath
47 int32_t Store::FreeStore(const std::string &dirPath, const std::string &fileName) in FreeStore() argument
49 if (dirPath.empty() || fileName.empty()) { in FreeStore()
52 std::string path = dirPath + "/" + fileName; in FreeStore()
65 std::string dirPath = path + '/'; in CreateNewSpace() local
67 LOG(INFO) << "Create dir " << dirPath; in CreateNewSpace()
68 if (stat(dirPath.c_str(), &fileStat) == -1) { in CreateNewSpace()
73 if (MkdirRecursive(dirPath, S_IRWXU) != 0) { in CreateNewSpace()
82 if (GetFilesFromDirectory(dirPath, files) < 0) { in CreateNewSpace()
100 int32_t Store::WriteDataToStore(const std::string &dirPath, const std::string &fileName, in WriteDataToStore() argument
103 if (dirPath.empty()) { in WriteDataToStore()
108 pathTmp = dirPath + "/"; in WriteDataToStore()
133 int fdd = open(dirPath.c_str(), O_RDONLY | O_DIRECTORY); in WriteDataToStore()
142 int32_t Store::LoadDataFromStore(const std::string &dirPath, const std::string &fileName, in LoadDataFromStore() argument
145 LOG(INFO) << "Store base is " << dirPath << "/" << fileName; in LoadDataFromStore()
146 std::string path = dirPath; in LoadDataFromStore()