Home
last modified time | relevance | path

Searched refs:destDir (Results 1 – 6 of 6) sorted by relevance

/base/hiviewdfx/hiview/interfaces/js/napi/include/
Dhiview_napi_adapter.h25 …iviewFileParams(const std::string& logType, const std::string& logName, const std::string& destDir) in HiviewFileParams()
26 : logType(logType), logName(logName), destDir(destDir) {}; in HiviewFileParams()
33 std::string destDir; member
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_agent.cpp91 bool HiviewServiceAgent::CheckAndCreateHiviewDir(const std::string& destDir) in CheckAndCreateHiviewDir() argument
93 if (destDir.find("..") != std::string::npos) { in CheckAndCreateHiviewDir()
94 HIVIEW_LOGE("invalid destDir: %{public}s", destDir.c_str()); in CheckAndCreateHiviewDir()
120 if (!destDir.empty() && !CreateDestDirs(hiviewDir, destDir)) { in CheckAndCreateHiviewDir()
127 bool HiviewServiceAgent::CreateDestDirs(const std::string& rootDir, const std::string& destDir) in CreateDestDirs() argument
130 StringUtil::SplitStr(destDir, "/", dirNames, false, true); in CreateDestDirs()
Dhiview_service_ability.cpp65 static std::string ComposeFilePath(const std::string& rootDir, const std::string& destDir, const st… in ComposeFilePath() argument
68 if (destDir.empty()) { in ComposeFilePath()
71 filePath.append("/").append(destDir).append("/").append(fileName); in ComposeFilePath()
/base/hiviewdfx/hiview/interfaces/js/napi/src/
Dnapi_hiview_js.cpp80 std::string destDir; in CopyOrMoveFile() local
83 || !HiviewNapiUtil::ParseStringValue(env, "dest", params[DEST_DIR_INDEX], destDir)) { in CopyOrMoveFile()
87 logType.c_str(), logName.c_str(), destDir.c_str()); in CopyOrMoveFile()
88 if (!HiviewNapiUtil::CheckDirPath(destDir)) { in CopyOrMoveFile()
89 HiLog::Error(LABEL, "dest param is invalid: %{public}s", destDir.c_str()); in CopyOrMoveFile()
93 …HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile()
Dhiview_napi_adapter.cpp42 params->result = HiviewServiceAgent::Copy(params->logType, params->logName, params->destDir); in CopyFileExecution()
57 params->result = HiviewServiceAgent::Move(params->logType, params->logName, params->destDir); in MoveFileExecution()
/base/hiviewdfx/hiview/adapter/service/idl/include/
Dhiview_service_agent.h40 static bool CheckAndCreateHiviewDir(const std::string& destDir);
41 static bool CreateDestDirs(const std::string& rootDir, const std::string& destDir);