Searched refs:destDir (Results 1 – 6 of 6) sorted by relevance
/base/hiviewdfx/hiview/interfaces/js/napi/include/ |
D | hiview_napi_adapter.h | 25 …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/ |
D | hiview_service_agent.cpp | 91 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()
|
D | hiview_service_ability.cpp | 65 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/ |
D | napi_hiview_js.cpp | 80 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()
|
D | hiview_napi_adapter.cpp | 42 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/ |
D | hiview_service_agent.h | 40 static bool CheckAndCreateHiviewDir(const std::string& destDir); 41 static bool CreateDestDirs(const std::string& rootDir, const std::string& destDir);
|