Lines Matching refs:localPath
288 context->localPath.c_str(), thisClass->taskInfo->channelId, context->fsOpenReq.result); in OnFileOpen()
295 context->localPath.c_str()); in OnFileOpen()
328 getfilecon(context->localPath.c_str(), &con); in OnFileOpen()
342 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
343 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.u_id, mode.g_id, nullptr); in OnFileOpen()
349 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
469 bool HdcTransferBase::CheckLocalPath(string &localPath, string &optName, string &errStr) in CheckLocalPath() argument
472 …WRITE_LOG(LOG_DEBUG, "CheckDirectory localPath = %s optName = %s", localPath.c_str(), optName.c_st… in CheckLocalPath()
479 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in CheckLocalPath()
487 Base::SplitString(localPath, split, dirsOflocalPath); in CheckLocalPath()
489 …WRITE_LOG(LOG_DEBUG, "localPath = %s dir layers = %zu", localPath.c_str(), dirsOflocalPath.size()); in CheckLocalPath()
492 if (!Base::IsAbsolutePath(localPath)) { in CheckLocalPath()
517 WRITE_LOG(LOG_WARN, "Not a directory, path:%s", localPath.c_str()); in CheckLocalPath()
519 errStr += localPath.c_str(); in CheckLocalPath()
525 bool HdcTransferBase::CheckFilename(string &localPath, string &optName, string &errStr) in CheckFilename() argument
527 string localPathBackup = localPath; in CheckFilename()
556 localPath = localPath + Base::GetPathSep() + s; in CheckFilename()
557 …WRITE_LOG(LOG_DEBUG, "CheckFilename try create dir = %s short path = %s", localPath.c_str(), s.c_s… in CheckFilename()
559 if (!Base::TryCreateDirectory(localPath, errStr)) { in CheckFilename()
563 string resolvedPath = Base::CanonicalizeSpecPath(localPath); in CheckFilename()
580 uv_fs_chmod(nullptr, &fs, localPath.c_str(), mode.perm, nullptr); in CheckFilename()
581 uv_fs_chown(nullptr, &fs, localPath.c_str(), mode.u_id, mode.g_id, nullptr); in CheckFilename()
586 setfilecon(localPath.c_str(), mode.context.c_str()); in CheckFilename()
594 …WRITE_LOG(LOG_DEBUG, "CheckFilename finish localPath:%s optName:%s", localPath.c_str(), optName.c_… in CheckFilename()
600 bool HdcTransferBase::SmartSlavePath(string &cwd, string &localPath, const char *optName) in SmartSlavePath() argument
605 ExtractRelativePath(cwd, localPath); in SmartSlavePath()
608 if (Base::CheckDirectoryOrPath(localPath.c_str(), true, false, errStr, mode)) { in SmartSlavePath()
614 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in SmartSlavePath()
617 localPath = Base::StringFormat("%s%c%s", localPath.c_str(), Base::GetPathSep(), optName); in SmartSlavePath()