From: Markus Goetz Date: Fri, 27 Mar 2015 12:15:43 +0000 (+0100) Subject: owncloudcmd: Always trail path with / X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1803^2~247 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9123fac545d2a14c22d659d682553fabc89752cf;p=nextcloud-desktop.git owncloudcmd: Always trail path with / Else the csync code vs the Qt code get confused. --- diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp index 3e616a725..0b8636bea 100644 --- a/src/cmd/cmd.cpp +++ b/src/cmd/cmd.cpp @@ -194,6 +194,9 @@ void parseOptions( const QStringList& app_args, CmdOptions *options ) if (options->target_url.startsWith("http")) options->target_url.replace(0, 4, "owncloud"); options->source_dir = args.takeLast(); + if (!options->source_dir.endsWith('/')) { + options->source_dir.append('/'); + } if( !QFile::exists( options->source_dir )) { std::cerr << "Source dir '" << qPrintable(options->source_dir) << "' does not exist." << std::endl; exit(1);