israelroldan / grunt-ssh

SSH, SFTP tasks for Grunt.

Home Page:https://npmjs.org/package/grunt-ssh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: Add trailing slash in path if needed

larsauswsw opened this issue · comments

Hello,

just had a problem with sftp and only found out with --verbose.

If the path has no trailing slash the files are not copied correct because the path for a file would be: '/var/www/foldernameindex.html'

You could add a slash if none is found at the end.