Lines Matching refs:localPath
259 WRITE_LOG(LOG_DEBUG, "Filemod openfile:%s", context->localPath.c_str()); in OnFileOpen()
266 context->localPath.c_str()); in OnFileOpen()
294 getfilecon(context->localPath.c_str(), &con); in OnFileOpen()
308 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
309 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.u_id, mode.g_id, nullptr); in OnFileOpen()
315 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
435 bool HdcTransferBase::CheckLocalPath(string &localPath, string &optName, string &errStr) in CheckLocalPath() argument
438 …WRITE_LOG(LOG_DEBUG, "CheckDirectory localPath = %s optName = %s", localPath.c_str(), optName.c_st… in CheckLocalPath()
445 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in CheckLocalPath()
453 Base::SplitString(localPath, split, dirsOflocalPath); in CheckLocalPath()
455 …WRITE_LOG(LOG_DEBUG, "localPath = %s dir layers = %zu", localPath.c_str(), dirsOflocalPath.size()); in CheckLocalPath()
458 if (!Base::IsAbsolutePath(localPath)) { in CheckLocalPath()
483 WRITE_LOG(LOG_WARN, "Not a directory, path:%s", localPath.c_str()); in CheckLocalPath()
485 errStr += localPath.c_str(); in CheckLocalPath()
491 bool HdcTransferBase::CheckFilename(string &localPath, string &optName, string &errStr) in CheckFilename() argument
493 string localPathBackup = localPath; in CheckFilename()
522 localPath = localPath + Base::GetPathSep() + s; in CheckFilename()
523 …WRITE_LOG(LOG_DEBUG, "CheckFilename try create dir = %s short path = %s", localPath.c_str(), s.c_s… in CheckFilename()
525 if (!Base::TryCreateDirectory(localPath, errStr)) { in CheckFilename()
529 string resolvedPath = Base::CanonicalizeSpecPath(localPath); in CheckFilename()
546 uv_fs_chmod(nullptr, &fs, localPath.c_str(), mode.perm, nullptr); in CheckFilename()
547 uv_fs_chown(nullptr, &fs, localPath.c_str(), mode.u_id, mode.g_id, nullptr); in CheckFilename()
552 setfilecon(localPath.c_str(), mode.context.c_str()); in CheckFilename()
560 …WRITE_LOG(LOG_DEBUG, "CheckFilename finish localPath:%s optName:%s", localPath.c_str(), optName.c_… in CheckFilename()
566 bool HdcTransferBase::SmartSlavePath(string &cwd, string &localPath, const char *optName) in SmartSlavePath() argument
571 ExtractRelativePath(cwd, localPath); in SmartSlavePath()
574 if (Base::CheckDirectoryOrPath(localPath.c_str(), true, false, errStr, mode)) { in SmartSlavePath()
580 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in SmartSlavePath()
583 localPath = Base::StringFormat("%s%c%s", localPath.c_str(), Base::GetPathSep(), optName); in SmartSlavePath()