From f857f2dab99939980ed1ba07cd48e4c24d20bdf8 Mon Sep 17 00:00:00 2001 From: xiaoso Date: Fri, 3 Mar 2023 23:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E5=A4=9A=E7=BA=A7=E8=B7=AF=E5=BE=84=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=88=B6=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/java3y/austin/support/utils/AustinFileUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/austin-support/src/main/java/com/java3y/austin/support/utils/AustinFileUtils.java b/austin-support/src/main/java/com/java3y/austin/support/utils/AustinFileUtils.java index b9a4dcf..859f238 100644 --- a/austin-support/src/main/java/com/java3y/austin/support/utils/AustinFileUtils.java +++ b/austin-support/src/main/java/com/java3y/austin/support/utils/AustinFileUtils.java @@ -27,6 +27,7 @@ public class AustinFileUtils { URL url = new URL(remoteUrl); File file = new File(path, url.getPath()); if (!file.exists()) { + file.getParentFile().mkdirs(); IoUtil.copy(url.openStream(), new FileOutputStream(file)); } return file;