diff --git a/designer-base/src/main/java/com/fr/file/FileFILE.java b/designer-base/src/main/java/com/fr/file/FileFILE.java index b9c4f7bb01..ee92205f50 100644 --- a/designer-base/src/main/java/com/fr/file/FileFILE.java +++ b/designer-base/src/main/java/com/fr/file/FileFILE.java @@ -194,11 +194,12 @@ public class FileFILE implements FILE { * @return 输出流 */ public OutputStream asOutputStream() { - if (file == null || !file.exists()) { + if (file == null) { return null; } OutputStream out; try { + StableUtils.makesureFileExist(file); out = new FileOutputStream(file); } catch (Exception e) { throw SessionLocalManager.createLogPackedException(e);