|
|
|
@@ -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) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|