From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 19:52:58 +0000 (+0200) Subject: Fix moving of download to final directory. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=26c31e8604a345042f41d72b9abefd0d7eb8d02d;p=xudocci.git Fix moving of download to final directory. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 4314933..df6d278 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -393,7 +393,7 @@ public class Core extends AbstractIdleService { try { download.outputStream().close(); File file = new File(download.filename()); - file.renameTo(new File(finalDirectory, download.filename())); + file.renameTo(new File(finalDirectory, download.pack().name())); eventBus.post(new DownloadFinished(download)); } catch (IOException ioe1) { /* TODO - handle all the errors. */