Answer the question
In order to leave comments, you need to log in
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'
}));
});
[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 questionAsk a Question
731 491 924 answers to any question