Lines Matching defs:path
39 std::vector<std::string> DumpCommonUtils::GetSubNodes(const std::string &path, bool digit)
42 auto dir = opendir(path.c_str());
60 // the parameter of path should be full.
61 bool DumpCommonUtils::IsDirectory(const std::string &path)
64 if (stat(path.c_str(), &statBuffer) == 0 && S_ISDIR(statBuffer.st_mode)) {
70 std::vector<std::string> DumpCommonUtils::GetSubDir(const std::string &path, bool digit)
73 auto dir = opendir(path.c_str());
75 DUMPER_HILOGE(MODULE_SERVICE, "failed to open dir: %{public}s, errno: %{public}d", path.c_str(), errno);
86 if (!IsDirectory(path + "/" + childNode)) {
97 std::string path = "/proc";
99 std::vector<std::string> allPids = GetSubDir(path, true);
178 string path = "/proc/" + pid + "/smaps";
180 bool ret = FileUtils::GetInstance().LoadStringFromProcCb(path, true, false, [&](const string& line) -> void {