From 675386fa8d0ae1dc79774c421900b9c38655b089 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Sun, 4 Dec 2022 13:09:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E5=8E=8B=E7=BC=A9=E5=BC=B9=E5=87=BA=E6=A1=86=EF=BC=8C?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=A0=BC=E5=BC=8F=20tarGz=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20tar.gz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/files/file_op.go | 2 +- frontend/src/enums/files.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/utils/files/file_op.go b/backend/utils/files/file_op.go index c4ff5e1c9..6c6c61f82 100644 --- a/backend/utils/files/file_op.go +++ b/backend/utils/files/file_op.go @@ -331,7 +331,7 @@ const ( Gz CompressType = "gz" Bz2 CompressType = "bz2" Tar CompressType = "tar" - TarGz CompressType = "tarGz" + TarGz CompressType = "tar.gz" Xz CompressType = "xz" ) diff --git a/frontend/src/enums/files.ts b/frontend/src/enums/files.ts index fe4c66630..7d474263b 100644 --- a/frontend/src/enums/files.ts +++ b/frontend/src/enums/files.ts @@ -3,7 +3,7 @@ export enum CompressType { Gz = 'gz', Bz2 = 'bz2', Tar = 'tar', - TarGz = 'tarGz', + TarGz = 'tar.gz', Xz = 'xz', } @@ -12,6 +12,6 @@ export enum CompressExtention { gz = '.gz', bz2 = '.tar.bz2', tar = '.tar', - tarGz = '.tar.gz', + 'tar.gz' = '.tar.gz', xz = '.tar.xz', }