Jason Schmedes
Results
2
comments of
Jason Schmedes
I got around this by quoting the remote path myself. For example: ```node const rsync = new Rsync() .set('rsh', 'ssh -p22') .source(`${username}@${host}:"${source}"`) .destination(destination) ```
Use [`rsync.execute`](https://www.npmjs.com/package/rsync#executecallback-stdouthandler-stderrhandler). Or look at how `rsync.execute` uses `spawn` to run the command: https://github.com/mattijs/node-rsync/blob/master/rsync.js#L481