Skip to content

Commit

Permalink
Merge pull request #70 from sutoiku/no-vinyl-pipe
Browse files Browse the repository at this point in the history
Vinyl's file method `pipe` is being removed
  • Loading branch information
morris authored Oct 6, 2016
2 parents 7379af2 + 7ff339c commit f4f46c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ module.exports = {

}

file.pipe( stream, { end: true } );
if ( file.isStream() ) {
file.contents.pipe( stream );
} else if ( file.isBuffer() ) {
stream.end( file.contents );
}

// ensure that parent directory exists
self.mkdirp( Path.dirname( path ), onParent );
Expand Down

0 comments on commit f4f46c1

Please sign in to comment.