From 3d84b49f549f84b88a0901aaf2928edca478b926 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Wed, 23 Aug 2023 11:29:58 +0800 Subject: [PATCH] * Remove tmp dir when upload file success. --- internal/server/modules/v1/service/workspace.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/server/modules/v1/service/workspace.go b/internal/server/modules/v1/service/workspace.go index f523bf15..59cab8e5 100644 --- a/internal/server/modules/v1/service/workspace.go +++ b/internal/server/modules/v1/service/workspace.go @@ -243,5 +243,6 @@ func (s *WorkspaceService) UploadScripts(fh *multipart.FileHeader, ctx iris.Cont } fileUtils.Unzip(zipPath, path) fileUtils.CopyDir(filepath.Join(path, commConsts.ExecZipPath), path) + fileUtils.RmDir(filepath.Join(path, commConsts.ExecZipPath)) return } -- GitLab