I
I
indigo_style2016-11-29 18:42:57
Node.js
indigo_style, 2016-11-29 18:42:57

Why gulp sftp Error: Failure?

I just started using gulp, I tried uploading a file to the hosting, the file uploads but displays the following error
SFTP error or directory exists: Error: Failure /home/c17835/public_html/css

var gulp = require('gulp'),
    sftp = require('gulp-sftp');
    
gulp.task('default', function () {
   return gulp.src('app/css/base.css') 
        .pipe(sftp({
            host: '***',
            user: '***',
            pass: '***',
            remotePath: '/home/c17835/public_html/css'
   }));
});

in the command window
[20:27:08] Using gulpfile ~\Desktop\gulp\gulpfile.js
[20:27:08] Starting 'default'...
[20:27:08] Authenticating with password.
[20:27:09] SFTP error or directory exists: Error: Failure /home/c17835/public_html/css
[20:27:10] gulp-sftp: Uploaded: base.css => /home/c17835/public_html/css/base.css
[20:27:10] gulp-sftp: 1 file uploaded successfully
[20:27:10] Finished 'default' after 1.91 s
[20:27:10] SFTP :: SFTP session closed
[20:27:10] Connection :: end
[20:27:10] Connection :: close

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question