gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

Issues when gulp-sftp creates remote directories #5

Closed u01jmg3 closed 10 years ago

u01jmg3 commented 10 years ago

Hi, when using the following settings:

gulp.task('sftp', function () {
    return gulp.src(['./**/*.{css,js,gif,png}', '!./src/**/*'])
        .pipe(sftp({
            host: 'ftpweb.xxxx.ac.uk',
            auth: 'keyMain',
            remotePath: 'public_html'
        }));
});

I'm finding when gulp-sftp comes to create directories that it fails. This is what I see on my web server:

1

The dist dir should be created within the public_html dir and the styles dir within the dist.

I saw a recent fix (#2) for slashes but perhaps this fix needs to be extended?

gtg092x commented 10 years ago

Can you tell me if you're on a windows client? My guess is yes, there might be an easy fix there

u01jmg3 commented 10 years ago

I am on Windows

gtg092x commented 10 years ago

Ok, uploaded a fix with the latest commit, don't have access to a windows machine at the moment; can you test and close?

u01jmg3 commented 10 years ago

Latest commit solves the issue on my Windows machine - many thanks