Skip to content

Commit

Permalink
Vinyl's file method pipe is being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalphettes committed Oct 6, 2016
1 parent 7379af2 commit 7ff339c
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 7ff339c

Please sign in to comment.