Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
da7616ff2b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      routers/repo/ai_model_manage.go

+ 3
- 2
routers/repo/ai_model_manage.go View File

@@ -195,7 +195,9 @@ func DownloadMultiModelFile(ctx *context.Context) {
w := zip.NewWriter(ctx.Resp)
defer w.Close()
for _, oneFile := range allFile {
if !oneFile.IsDir {
if oneFile.IsDir {
log.Info("zip dir name:" + oneFile.FileName)
} else {
log.Info("zip file name:" + oneFile.FileName)
fDest, err := w.Create(oneFile.FileName)
if err != nil {
@@ -224,7 +226,6 @@ func DownloadMultiModelFile(ctx *context.Context) {
}
}
}

}
}
}


Loading…
Cancel
Save