Просмотр исходного кода

fix bug when unzipping directory

Brian Gough 9 лет назад
Родитель
Сommit
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)
 							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