Commit acc060fc authored by 廖旭伟's avatar 廖旭伟

综窗接口文件预览功能bug修改

parent eb5e51b6
......@@ -458,10 +458,11 @@ public class SyntheticalController extends BaseJsonBodyController {
String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/";
String filePath = rootPath + "temp/" + fileName;
OutputStream outputStream = null;
File file = new File(filePath);
File file = new File(rootPath+"temp/");
if (!file.exists() && !file.isDirectory()) {
file.mkdirs();
}
file = new File(filePath);
outputStream = new FileOutputStream(file);
outputStream.write(data);
outputStream.flush();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment