Home
last modified time | relevance | path

Searched refs:localPath (Results 1 - 11 of 11) sorted by relevance

/developtools/hdc/src/common/
H A Dfile.cpp65 uv_fs_open(loopTask, openReq, context->localPath.c_str(), O_RDONLY, S_IWUSR | S_IRUSR, OnFileOpen); in BeginTransfer()
70 LogMsg(MSG_FAIL, "Transfer path failed, Master:%s Slave:%s", context->localPath.c_str(), in BeginTransfer()
118 context->localPath = argv[argc - CMD_FILE_PENULT_PARAM]; in SetMasterParameters()
125 ExtractRelativePath(context->transferConfig.clientCwd, context->localPath); in SetMasterParameters()
129 context->localPath = argv[argc - 1]; in SetMasterParameters()
133 context->localName = Base::GetFullFilePath(context->localPath); in SetMasterParameters()
136 if (!Base::CheckDirectoryOrPath(context->localPath.c_str(), true, true, errStr, mode) && (mode & S_IFDIR)) { in SetMasterParameters()
138 GetSubFilesRecursively(context->localPath, context->localName, &context->taskQueue); in SetMasterParameters()
145 context->localDirName = Base::GetPathWithoutFilename(context->localPath); in SetMasterParameters()
150 context->localPath in SetMasterParameters()
[all...]
H A Dtransfer.cpp265 context->localPath.c_str(), context->openFd); in OnFileIO()
347 context->localPath.c_str(), thisClass->taskInfo->channelId, req->result); in OnFileOpen()
354 context->localPath.c_str()); in OnFileOpen()
355 WRITE_LOG(LOG_FATAL, "open path:%s error:%s", context->localPath.c_str(), buf); in OnFileOpen()
383 getfilecon(context->localPath.c_str(), &con); in OnFileOpen()
395 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
396 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.uId, mode.gId, nullptr); in OnFileOpen()
402 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
527 bool HdcTransferBase::CheckLocalPath(string &localPath, string &optName, string &errStr) in CheckLocalPath() argument
529 // If optName show this is directory mode, check localPath an in CheckLocalPath()
582 CheckFilename(string &localPath, string &optName, string &errStr) CheckFilename() argument
649 SmartSlavePath(string &cwd, string &localPath, const char *optName) SmartSlavePath() argument
[all...]
H A Dcompress.cpp73 bool Compress::SaveToFile(std::string localPath) in SaveToFile() argument
75 if (localPath.length() <= 0) { in SaveToFile()
76 localPath = "tmp.tar"; in SaveToFile()
79 int rc = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in SaveToFile()
84 std::ofstream file(localPath.c_str(), std::ios::out | std::ios::binary); in SaveToFile()
86 WRITE_LOG(LOG_FATAL, "SaveToFile open file %s failed", localPath.c_str()); in SaveToFile()
H A Dtransfer.h85 string localPath; member
130 bool SmartSlavePath(string &cwd, string &localPath, const char *optName);
131 bool CheckLocalPath(string &localPath, string &optName, string &errStr);
132 bool CheckFilename(string &localPath, string &optName, string &errStr);
H A Dcompress.h31 bool SaveToFile(std::string localPath);
H A Dbase.h100 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str);
102 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, mode_t &fm);
103 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite);
H A Dbase.cpp1648 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str) in BuildErrorString() argument
1653 str += localPath; in BuildErrorString()
1659 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, mode_t &fm) in CheckDirectoryOrPath() argument
1665 int r = uv_fs_lstat(nullptr, &req, localPath, nullptr); in CheckDirectoryOrPath()
1670 BuildErrorString(localPath, "lstat", buf, errStr); in CheckDirectoryOrPath()
1679 uv_fs_access(nullptr, &req, localPath, readWrite ? R_OK : W_OK, nullptr); in CheckDirectoryOrPath()
1685 BuildErrorString(localPath, op, buf, errStr); in CheckDirectoryOrPath()
1696 errStr += localPath; in CheckDirectoryOrPath()
1700 errStr += localPath; in CheckDirectoryOrPath()
1735 bool CheckDirectoryOrPath(const char *localPath, boo argument
[all...]
/developtools/hdc/src/host/
H A Dhost_app.cpp105 bool HdcHostApp::BeginSideload(CtxFile *context, const char *localPath) in BeginSideload() argument
109 context->taskQueue.push_back(localPath); in BeginSideload()
116 context->localPath = context->taskQueue.back(); in RunQueue()
126 uv_fs_open(loopTask, openReq, context->localPath.c_str(), O_RDONLY, 0, OnFileOpen); in RunQueue()
140 if (context->localPath.find(".hap") != static_cast<size_t>(-1)) { in CheckMaster()
142 } else if (context->localPath.find(".hsp") != static_cast<size_t>(-1)) { in CheckMaster()
144 } else if (context->localPath.find(".tar") != static_cast<size_t>(-1)) { in CheckMaster()
180 string path = ctxNow.localPath; in CheckInstallContinue()
H A Dhost_updater.cpp81 context.localPath = context.taskQueue.back(); in RunQueue()
91 uv_fs_open(loopTask, openReq, context.localPath.c_str(), O_RDONLY, 0, OnFileOpen); in RunQueue()
116 std::string localPath = params[index]; in BeginTransfer() local
117 if (!Base::CheckDirectoryOrPath(localPath.c_str(), true, true)) { in BeginTransfer()
118 WRITE_LOG(LOG_FATAL, "localPath is invalid"); in BeginTransfer()
122 if (MatchPackageExtendName(localPath, ".img") || MatchPackageExtendName(localPath, ".bin") || in BeginTransfer()
123 MatchPackageExtendName(localPath, ".fd") || MatchPackageExtendName(localPath, ".cpio")) { in BeginTransfer()
125 } else if (MatchPackageExtendName(localPath, " in BeginTransfer()
[all...]
H A Dhost_app.h31 bool BeginSideload(CtxFile *context, const char *localPath);
/developtools/hdc/src/daemon/
H A Ddaemon_app.cpp61 ctxNow.localPath = dstPath; in MakeCtxForAppCheck()
86 uv_fs_open(loopTask, openReq, ctxNow.localPath.c_str(), in CommandDispatch()
117 unlink(ctxNow.localPath.c_str()); in AsyncInstallFinish()
118 string::size_type rindex = ctxNow.localPath.rfind(".tar"); in AsyncInstallFinish()
120 string dir = ctxNow.localPath.substr(0, rindex); in AsyncInstallFinish()
272 Sideload(context->localPath.c_str()); in WhenTransferFinish()
274 string dir = Tar2Dir(context->localPath.c_str()); in WhenTransferFinish()
278 PackageShell(true, context->transferConfig.options.c_str(), context->localPath.c_str()); in WhenTransferFinish()

Completed in 11 milliseconds