Set temp directory on connetion and put dir command.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 20:24:54 +0000 (21:24 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 20:24:54 +0000 (21:24 +0100)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 8821ad6..597c237 100644 (file)
@@ -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());
                }