From: David ‘Bombe’ Roden Date: Tue, 22 Dec 2009 20:24:54 +0000 (+0100) Subject: Set temp directory on connetion and put dir command. X-Git-Tag: 0.8~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=52df0f2320d5c02adbd4e0bd304154ec1689972c;p=jSite.git Set temp directory on connetion and put dir command. --- diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index 8821ad6..597c237 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -386,6 +386,7 @@ public class ProjectInserter implements FileScannerListener, Runnable { /* create connection to node */ Connection connection = freenetInterface.getConnection("project-insert-" + random + counter++); + connection.setTempDirectory(tempDirectory); boolean connected = false; Throwable cause = null; try { @@ -409,7 +410,7 @@ public class ProjectInserter implements FileScannerListener, Runnable { /* collect files */ int edition = project.getEdition(); String dirURI = "USK@" + project.getInsertURI() + "/" + project.getPath() + "/" + edition + "/"; - ClientPutComplexDir putDir = new ClientPutComplexDir("dir-" + counter++, dirURI); + ClientPutComplexDir putDir = new ClientPutComplexDir("dir-" + counter++, dirURI, tempDirectory); if ((project.getIndexFile() != null) && (project.getIndexFile().length() > 0)) { putDir.setDefaultName(project.getIndexFile()); }