From ab1d3714413f23e1f764e75ab593a491109a68d6 Mon Sep 17 00:00:00 2001 From: makejava <1353036300@qq.com> Date: Wed, 29 Jul 2020 11:43:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=AD=98=E5=9C=A8=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/sjhy/plugin/entity/SaveFile.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/sjhy/plugin/entity/SaveFile.java b/src/main/java/com/sjhy/plugin/entity/SaveFile.java index 1814428..1b4ab96 100644 --- a/src/main/java/com/sjhy/plugin/entity/SaveFile.java +++ b/src/main/java/com/sjhy/plugin/entity/SaveFile.java @@ -20,7 +20,6 @@ import lombok.Data; import lombok.NonNull; import java.io.File; -import java.io.IOException; /** * 需要保存的文件 @@ -187,12 +186,7 @@ public class SaveFile { if (this.operateTitle && !MessageDialogBuilder.yesNo(MsgValue.TITLE_INFO, msg).isYes()) { return null; } - try { - saveDir = VfsUtil.createDirectoryIfMissing(baseDir, savePath); - } catch (IOException e) { - Messages.showWarningDialog("目录创建失败" + savePath, MsgValue.TITLE_INFO); - return null; - } + saveDir = fileUtils.createChildDirectory(project, baseDir, savePath); return saveDir; }