From 8e5d150f2c820dafd2562d731f75f5866cc442bb Mon Sep 17 00:00:00 2001 From: tobias <tobias.ullerich@icloud.com> Date: Sat, 16 Jul 2016 18:01:08 +0200 Subject: [PATCH] Fix bug downloading updater --- PlayWall/src/de/tobias/playpad/update/Updates.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlayWall/src/de/tobias/playpad/update/Updates.java b/PlayWall/src/de/tobias/playpad/update/Updates.java index 40192bf8..a507e8d4 100644 --- a/PlayWall/src/de/tobias/playpad/update/Updates.java +++ b/PlayWall/src/de/tobias/playpad/update/Updates.java @@ -83,6 +83,10 @@ public class Updates { private static void downloadUpdater(String updaterURL, Path path) throws IOException, MalformedURLException { URL url = new URL(updaterURL); InputStream iStr = url.openStream(); + + if (Files.notExists(path)) { + Files.createDirectories(path.getParent()); + } IOUtils.copy(iStr, path); -- GitLab