Bugfixes in download manager and other minor changes

This commit is contained in:
inorichi
2015-11-06 20:22:01 +01:00
parent d3a32da62c
commit 17c60644dd
10 changed files with 205 additions and 92 deletions
@@ -115,9 +115,7 @@ public final class DiskUtils {
}
public static File saveBufferedSourceToDirectory(BufferedSource bufferedSource, File directory, String name) throws IOException {
if (!directory.exists() && !directory.mkdirs()) {
throw new IOException("Failed Creating Directory");
}
createDirectory(directory);
File writeFile = new File(directory, name);
if (writeFile.exists()) {