Merge pull request #26 from xiaoso456/dev

邮件处理器下载文件时,自动创建文件父级目录
master
Java3y 2 years ago committed by GitHub
commit dfadc5b8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save