gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

Directory creation oddities #75

Open sandwich opened 6 years ago

sandwich commented 6 years ago

I'm encountering an odd directory-creation issue, using 0.1.5.

When remotePath ends in a forward-slash (/), the entirety of that directory structure must exist. remotePath: /each/directory/here/must/exist/

However, when remotePath ends just with the directory name, eg /dir/another_dir/also_a_dir (note no trailing forward-slash), gulp-sftp only requires dir and another_dir to exist; it will create also_a_dir and then place the piped files in there (in their own subdirs, if any).

Not a big issue; just wanted to point it out.