From 53736314e819bc4026d79beee629d42eb52cca97 Mon Sep 17 00:00:00 2001 From: Yanbing Zhao Date: Sat, 31 Jul 2021 01:18:24 +0800 Subject: [PATCH] Files.createDirectory => Files.createDirectories --- build.gradle | 2 +- src/main/java/org/teacon/slides/download/SlideDownloader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e1fd993..baa0de1 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'eclipse' apply plugin: 'maven-publish' -version = '0.4.4' +version = '0.4.5' group = 'org.teaconmc' archivesBaseName = 'SlideShow' diff --git a/src/main/java/org/teacon/slides/download/SlideDownloader.java b/src/main/java/org/teacon/slides/download/SlideDownloader.java index 946e127..c93e048 100644 --- a/src/main/java/org/teacon/slides/download/SlideDownloader.java +++ b/src/main/java/org/teacon/slides/download/SlideDownloader.java @@ -75,7 +75,7 @@ public CompletableFuture download(URI location, boolean online) { private void ensureDirectory(Path parentPath) { try { - Files.createDirectory(parentPath); + Files.createDirectories(parentPath); } catch (IOException e) { throw new RuntimeException("Failed to create cache directory for slides.", e); }