From 40633619cadf3c5d174f2c020b1297404ba3f88e Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 5 May 2023 14:50:52 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=A7=A3=E5=8E=8B=20m?= =?UTF-8?q?ac=20=E5=8E=8B=E7=BC=A9=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#879)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/files/file_op.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/utils/files/file_op.go b/backend/utils/files/file_op.go index 91482f614..81d0400ea 100644 --- a/backend/utils/files/file_op.go +++ b/backend/utils/files/file_op.go @@ -482,6 +482,9 @@ func (f FileOp) Decompress(srcFile string, dst string, cType CompressType) error handler := func(ctx context.Context, archFile archiver.File) error { info := archFile.FileInfo + if strings.HasPrefix(archFile.NameInArchive, "__MACOSX") { + return nil + } filePath := filepath.Join(dst, archFile.NameInArchive) if archFile.FileInfo.IsDir() { if err := f.Fs.MkdirAll(filePath, info.Mode()); err != nil {