From 1b80f4f7aaa9627c1a499d2cfd505c14b66ac82a Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 21 May 2019 00:53:33 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9B=D0=BE=D0=B3=D0=B3=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B0,=20=D0=BA=D1=83=D0=B4=D0=B0=20=D0=B7=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B6=D0=B0=D1=82=D1=81=D1=8F=20=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ru/gravit/launcher/downloader/ListDownloader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/downloader/ListDownloader.java b/LauncherAPI/src/main/java/ru/gravit/launcher/downloader/ListDownloader.java index f9e5a9a4..7b7fd27d 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/downloader/ListDownloader.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/downloader/ListDownloader.java @@ -51,13 +51,14 @@ public void download(String base, List applies, Path dstDirFile, D for (DownloadTask apply : applies) { URI u = new URL(base.concat(IOHelper.urlEncode(apply.apply).replace("%2F", "/"))).toURI(); callback.stateChanged(apply.apply, 0L, apply.size); - LogHelper.debug("Download URL: %s", u.toString()); + Path targetPath = dstDirFile.resolve(apply.apply); + LogHelper.debug("Download URL: %s to file %s dir: %s", u.toString(), targetPath.toAbsolutePath().toString(), dstDirFile.toAbsolutePath().toString()); if (get == null) get = new HttpGet(u); else { get.reset(); get.setURI(u); } - httpclient.execute(get, new FileDownloadResponseHandler(dstDirFile.resolve(apply.apply), apply, callback, totalCallback, false)); + httpclient.execute(get, new FileDownloadResponseHandler(targetPath, apply, callback, totalCallback, false)); } } }