welaika / photocopier

FTP & SSH file copier
MIT License
17 stars 15 forks source link

Adding quotes to local path #13

Closed ChuckMac closed 9 years ago

ChuckMac commented 9 years ago

If your local path has spaces in it (ex: Windows), the lcd command will fail due to the path not being quoted.

delphaber commented 9 years ago

Hi, thx for your input.

We are refactoring photocopier and switching to Shellwords.

So this fix

          "lcd #{Shellwords.escape(local)}",

will work on path with spaces too :)