diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 3fd4f0db738..c4b21a1f413 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -1337,7 +1337,7 @@ static FilePaths dirsToCreate(const FilesToTransfer &files) static QByteArray transferCommand(bool link) { - return link ? "ln -s" : "put"; + return link ? "ln -s" : "put -R"; } class SshTransferInterface : public FileTransferInterface @@ -1558,7 +1558,7 @@ private: const auto batchIt = m_batches.begin(); for (auto filesIt = batchIt->cbegin(); filesIt != batchIt->cend(); ++filesIt) { const FileToTransfer fixedFile = fixLocalFileOnWindows(*filesIt, options); - options << fixedLocalPath(fixedFile.m_source); + options << fixedFile.m_source.path(); } options << fixedRemotePath(batchIt.key(), userAtHost()); m_batches.erase(batchIt); @@ -1588,11 +1588,6 @@ private: return fixedFile; } - QString fixedLocalPath(const FilePath &file) const - { - return file.isDir() && file.path().back() != '/' ? file.path() + '/' : file.path(); - } - QString fixedRemotePath(const FilePath &file, const QString &remoteHost) const { return remoteHost + ':' + file.path();