MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / RemoveFile

Method RemoveFile

Plugins/FileTransfer/ChannelSFTP.cpp:278–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278int CChannelSFTP::RemoveFile(const QString &file)
279{
280 // 删除文件
281 int ret = sftp_unlink(m_SessionSftp, file.toStdString().c_str());
282 if (ret != SSH_OK) {
283 QString szErr = "Can't remove file:" + file + ssh_get_error(m_Session);
284 qCritical(log) << szErr;
285 emit sigError(ret, szErr);
286 } else {
287 qDebug(log) << "Removed file:" << file;
288 }
289 return ret;
290}
291
292int CChannelSFTP::Rename(const QString &oldPath, const QString &newPath)
293{

Callers 1

eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected