作者 tangxvhui
@@ -374,7 +374,9 @@ func (controller *ImportController) Unzip(zipPath, dstDir string) ([]string, err @@ -374,7 +374,9 @@ func (controller *ImportController) Unzip(zipPath, dstDir string) ([]string, err
374 if err := controller.unzipFile(f, decodeName, dstDir); err != nil { 374 if err := controller.unzipFile(f, decodeName, dstDir); err != nil {
375 return fileNames, err 375 return fileNames, err
376 } else { 376 } else {
377 - fileNames = append(fileNames, decodeName) 377 + if !(f.FileInfo().IsDir()) {
  378 + fileNames = append(fileNames, decodeName)
  379 + }
378 } 380 }
379 } 381 }
380 return fileNames, nil 382 return fileNames, nil