Skip to content

Commit

Permalink
filter decompress files that end in /
Browse files Browse the repository at this point in the history
 - getting EISDIR errors during tmp cleanup
 - the file was getting wrongly unzipped as a file instead of a folder
 - this updates to just skip the folders
 - see kevva/decompress#46
  • Loading branch information
Dan Butvinik committed Oct 9, 2018
1 parent 765909c commit 8dfe4ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/baseHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ class BaseHandler {
}

decompress(source, destination) {
return decompress(source, destination)
return decompress(source, destination, {
filter: file => !file.path.endsWith('/')
})
}

toSpec(request) {
Expand Down

0 comments on commit 8dfe4ea

Please sign in to comment.