You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gulp-sftp requires the size of all uploaded files to be known, otherwise it crashes on this line: https://github.com/gtg092x/gulp-sftp/blob/master/index.js#L272. Since Gulp is supposed to be the streaming build system, and gulp-sftp is only using the size for logging (it seems), I would suggest removing the requirement. For example, gulp-sftp could only print the progress in percentage if the size is known.
My use case is zipping a folder and uploading it immediately without writing it to the local file system.
I'm willing to make a PR but I would first like a sign from @gtg092x.
The text was updated successfully, but these errors were encountered:
const gulpSftp = require('gulp-sftp');
const vinylFs = require('vinyl-fs');
...
.pipe(...)
.pipe(vinylFs.dest(tmp)) // have to do this because gulpSftp needs file sizes
.pipe(gulpSftp({host, user, pass, remotePath}))
gulp.dest instead of vinylFs.dest should work as well.
gulp-sftp
requires the size of all uploaded files to be known, otherwise it crashes on this line: https://github.com/gtg092x/gulp-sftp/blob/master/index.js#L272. Since Gulp is supposed to be the streaming build system, andgulp-sftp
is only using the size for logging (it seems), I would suggest removing the requirement. For example,gulp-sftp
could only print the progress in percentage if the size is known.My use case is zipping a folder and uploading it immediately without writing it to the local file system.
I'm willing to make a PR but I would first like a sign from @gtg092x.
The text was updated successfully, but these errors were encountered: