From 7b9def71fc23ca5a5455a0dc435ec10a2645dd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 31 May 2024 10:20:23 +0800 Subject: [PATCH] =?UTF-8?q?SFTP=E4=B8=8A=E4=BC=A0,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/common/util/SFTPUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java index 484857e1..d32d686a 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java @@ -284,9 +284,8 @@ public class SFTPUtil { if (!localDirFile.exists()) { localDirFile.mkdirs(); } - + saveFile = saveFile.replace("\\","/"); String newName = CommonUtils.getFileName(df[1]); - newName = newName.replace("\\","/"); if(!newName.startsWith("/")){ newName = "/"+newName; }