mattijs / node-rsync

Rsync wrapper for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escape filenames

matogertel opened this issue · comments

Filenames with special characters break the final command output.
This is what I'm using in the meantime to get around it: rsync.source(filename.replace(/(["\s'$])/g,'$1'))`

Also directories with spaces break the rsync command.

This is fixed by pull #23 and will appear in the next release.