|
|
|
@ -76,15 +76,6 @@ func (f *FileService) Compress(args *ZipBlock, reply *string) error { |
|
|
|
taskId <- "upok" |
|
|
|
}() |
|
|
|
|
|
|
|
if strings.EqualFold(strings.ToLower(rest), "upok") { |
|
|
|
logger.Info("上传文件", zap.String("filename", zpFileName), zap.String("path", remotePath)) |
|
|
|
// 解压缩文件,文件存在的文化
|
|
|
|
util.DecompressZip(remotePath) |
|
|
|
logger.Info("解压缩文件", zap.String("filename", zpFileName), zap.String("path", remotePath)) |
|
|
|
// 上传完成后删除本地压缩包
|
|
|
|
// util.DeleteFile(ziprl)
|
|
|
|
} |
|
|
|
|
|
|
|
// 返回压缩包名称
|
|
|
|
*reply = ziprl |
|
|
|
} |
|
|
|
|