From 52df0f2320d5c02adbd4e0bd304154ec1689972c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 22 Dec 2009 21:24:54 +0100 Subject: [PATCH] Set temp directory on connetion and put dir command. --- src/de/todesbaum/jsite/application/ProjectInserter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } -- 2.7.4