diff --git a/src/plugins/remotelinux/rsyncdeploystep.cpp b/src/plugins/remotelinux/rsyncdeploystep.cpp index edef505f1ac..b1158f2bba4 100644 --- a/src/plugins/remotelinux/rsyncdeploystep.cpp +++ b/src/plugins/remotelinux/rsyncdeploystep.cpp @@ -159,7 +159,7 @@ void RsyncDeployService::deployNextFile() const DeployableFile file = m_deployableFiles.takeFirst(); const RsyncCommandLine cmdLine = RsyncDeployStep::rsyncCommand(*connection(), m_flags); const QStringList args = QStringList(cmdLine.options) - << file.localFilePath().toString() + << (file.localFilePath().toString() + (file.localFilePath().isDir() ? "/" : QString())) << (cmdLine.remoteHostSpec + ':' + file.remoteFilePath()); m_rsync.start("rsync", args); // TODO: Get rsync location from settings? }