Ver código fonte

fix bug when unzipping directory

Brian Gough 9 anos atrás
pai
commit
76d73951f2

+ 2 - 0
services/web/app/coffee/Features/Uploads/ArchiveManager.coffee

@@ -94,6 +94,8 @@ module.exports = ArchiveManager =
 								return callback(err)
 							else
 								zipfile.readEntry() # continue to the next file
+					else # if it's a directory, continue
+						zipfile.readEntry()
 			# no more entries to read
 			zipfile.on "end", callback