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