修复创建目录存在报错的BUG

This commit is contained in:
makejava 2020-07-29 11:43:51 +08:00
parent 95517aff34
commit ab1d371441
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}