From 26c31e8604a345042f41d72b9abefd0d7eb8d02d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Apr 2013 21:52:58 +0200 Subject: [PATCH] Fix moving of download to final directory. --- src/main/java/net/pterodactylus/xdcc/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.7.4