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)); } } }