Lines Matching defs:path
50 LOG(ERROR) << "path too long for mkdir";
70 int64_t GetFilesFromDirectory(const std::string &path, std::vector<std::string> &files,
74 if (stat(path.c_str(), &sb) == -1) {
78 DIR *dirp = opendir(path.c_str());
82 std::string fileName = path + "/" + dp->d_name;
100 bool RemoveDir(const std::string &path)
102 if (path.empty()) {
103 LOG(ERROR) << "input path is empty.";
106 std::string strPath = path;
134 bool IsFileExist(const std::string &path)
137 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) {
143 bool IsDirExist(const std::string &path)
146 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) {