diff options
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpConnection.java b/src/main/java/eu/siacs/conversations/http/HttpConnection.java index 24eb5ed3..147ac42f 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpConnection.java @@ -229,6 +229,8 @@ public class HttpConnection implements Downloadable { connection.connect(); BufferedInputStream is = new BufferedInputStream( connection.getInputStream()); + file.getParentFile().mkdirs(); + file.createNewFile(); OutputStream os = file.createOutputStream(); if (os == null) { throw new IOException(); |