Lines Matching full:path
285 char path[PATH_MAX] = {0};
286 if (realpath(file.c_str(), path) == nullptr) {
287 DUMPER_HILOGE(MODULE_COMMON, "realpath, no such file. path=[%{public}s], file=[%{public}s]",
288 path, file.c_str());
292 if (file != std::string(path)) {
293 DUMPER_HILOGI(MODULE_COMMON, "fail to check consistency. path=[%{public}s], file=[%{public}s]",
294 path, file.c_str());
297 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC | O_NONBLOCK));
299 DUMPER_HILOGE(MODULE_COMMON, "open [%{public}s] %{public}s", path, ErrnoToMsg(errno).c_str());
309 DUMPER_HILOGE(MODULE_COMMON, "file path:[%{public}s] error", file.c_str());
315 char path[PATH_MAX] = {0};
316 if (realpath(tempPath.c_str(), path) != nullptr) {
317 std::string fileName = path + split + name;
334 DUMPER_HILOGD(MODULE_COMMON, "realpath, no such file. path=[%{public}s], tempPath=[%{public}s]",
335 path, tempPath.c_str());
341 char path[PATH_MAX] = {0};
347 if (realpath(pathPid, path) != nullptr) { // path exist
348 if (access(path, F_OK) == 0) { // can be read
394 bool DumpUtils::DirectoryExists(const std::string &path)
397 if (stat(path.c_str(), &fileInfo) == 0) {
403 bool DumpUtils::PathIsValid(const std::string &path)
405 return access(path.c_str(), F_OK) == 0;