From edf32c437dc43dca9eb844cd46af77210931e59c Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Fri, 11 Oct 2024 17:07:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20update=20tmp=20file=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/sdk/constants/LocalRepositoryDir.java | 2 +- .../src/main/java/io/metersphere/sdk/util/TempFileUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/LocalRepositoryDir.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/LocalRepositoryDir.java index ae1d36d751..4b15cf0b46 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/LocalRepositoryDir.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/LocalRepositoryDir.java @@ -8,7 +8,7 @@ public class LocalRepositoryDir { /** * 本地存储文件的根目录 */ - private static final String ROOT_DIR = "/tmp/metersphere"; + private static final String ROOT_DIR = "/opt/metersphere/tmp"; /** * 系统级别资源的根目录 */ diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/TempFileUtils.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/TempFileUtils.java index 1159d051cc..84335909a1 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/TempFileUtils.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/TempFileUtils.java @@ -9,7 +9,7 @@ import java.awt.image.BufferedImage; import java.io.*; public class TempFileUtils { - private static final String TEMP_FILE_FOLDER = "/tmp/metersphere/file/"; + private static final String TEMP_FILE_FOLDER = "/opt/metersphere/file-preview/"; private static final int CREATE_FILE_BYTES_MAX_LENGTH = 256; private TempFileUtils() { }