Lines Matching defs:physicalPath
408 std::string physicalPath;
409 auto ret = GetRealPath(srcUri, dstUri, physicalPath, info, daemon);
415 SoftBusSessionPool::SessionInfo sessionInfo{.dstPath = physicalPath, .uid = IPCSkeleton::GetCallingUid()};
422 StoreSessionAndListener(physicalPath, sessionName, listenerCallback);
424 DFS_CHANNLE_ROLE_SINK, physicalPath);
430 physicalPath.clear();
433 physicalPath = "??" + info.dstPhysicalPath;
435 ret = Copy(srcUri, physicalPath, daemon, sessionName);
444 void Daemon::StoreSessionAndListener(const std::string &physicalPath,
453 std::string &physicalPath,
483 ret = SandboxHelper::GetPhysicalPath(dstUri, std::to_string(hapTokenInfo.userID), physicalPath);
489 LOGI("physicalPath %{public}s, userId %{public}s", GetAnonyString(physicalPath).c_str(),
491 info.dstPhysicalPath = physicalPath;
492 ret = CheckCopyRule(physicalPath, dstUri, hapTokenInfo, isSrcFile, info);
503 int32_t Daemon::CheckCopyRule(std::string &physicalPath,
509 auto checkPath = physicalPath;
510 if (isSrcFile && !Utils::IsFolder(physicalPath)) {
511 auto pos = physicalPath.rfind('/');
516 physicalPath = physicalPath.substr(0, pos);
520 if (!std::filesystem::exists(physicalPath, errCode) && info.dirExistFlag) {
521 LOGI("Not CheckValidPath, physicalPath %{public}s", GetAnonyString(physicalPath).c_str());
540 physicalPath = "/data/service/el2/" + to_string(hapTokenInfo.userID) + "/hmdfs/account/data/" + bundleName +
542 if (!SandboxHelper::CheckValidPath(physicalPath)) {
548 if (!std::filesystem::exists(physicalPath, errCode) && std::regex_match(physicalPath.c_str(), pathRegex)) {
549 std::filesystem::create_directory(physicalPath, errCode);
551 LOGE("Create directory failed, physicalPath %{public}s", GetAnonyString(physicalPath).c_str());
562 auto physicalPath = SoftBusSessionListener::GetRealPath(srcUri);
563 if (physicalPath.empty()) {
567 isSrcFile = Utils::IsFile(physicalPath);
568 srcIsDir = Utils::IsFolder(physicalPath);