瀏覽代碼

fix bug when unzipping directory

Brian Gough 9 年之前
父節點
當前提交
76d73951f2
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      services/web/app/coffee/Features/Uploads/ArchiveManager.coffee

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

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