Closed jbouzekri closed 9 years ago
How do you use gulp-ssh
?
This way :
var gulpSSH = new GulpSSH({
ignoreErrors: false,
sshConfig: config
});
gulp.task('dest', function () {
return gulp
.src(['./src/**/*'])
.pipe(gulpSSH.dest('/mydestfolder/'))
});
It work well for me:
gulp.task('dest', function () {
return gulp
.src(['*.pdf'])
.pipe(gulpSSH.dest('/home/iojs/test/pdf/'))
})
➜ gulp-ssh git:(master) ✗ gulp dest
[19:07:55] Using gulpfile ~/git/teambition/gulp-ssh/gulpfile.js
[19:07:55] Starting 'dest'...
[19:07:55] gulp-ssh :: Connect...
[19:07:55] gulp-ssh :: Ready
[19:07:55] Preparing to write "/home/iojs/test/pdf/从0到1.pdf"
[19:07:55] Creating directory '/home/iojs/test/pdf'
[19:07:55] Writing '/home/iojs/test/pdf/从0到1.pdf'
[19:07:59] Finished writing '/home/iojs/test/pdf/从0到1.pdf'
[19:07:59] Preparing to write "/home/iojs/test/pdf/操作系统教程.pdf"
[19:07:59] Writing '/home/iojs/test/pdf/操作系统教程.pdf'
[19:08:03] Finished writing '/home/iojs/test/pdf/操作系统教程.pdf'
[19:08:03] Finished 'dest' after 8.55 s
[19:08:03] gulp-ssh :: End
[19:08:03] gulp-ssh :: Close
Very strange. I don't have the full code I used right now. I will check later at home. Thanks for taking the time to do this small test.
Let me amend my issue. It seems the message "folder has not content. Skipping." is displayed but the files are transmitted.
Very strange. Other files work?
In fact, all the files worked. They are all sent to the server. However some folders log the message "has no content. Skipping" even if they are processed later. It happens with all kind of file type inside so I cannot extract a common pattern. Moreover, the files i am trying to transmit are private so I cannot send you the files and code to test.
So I think you can close this issue because I don't know how we can debug it.
:1234:
Hi, Thanks for the awesome module. I have an issue with folder having only pdf files inside. They are processed as empty and skipped by the module. Thanks