From d3ad7124182874c027b4cd4b01e55038c1792a51 Mon Sep 17 00:00:00 2001 From: theli Date: Tue, 25 Oct 2005 10:45:14 +0000 Subject: [PATCH] *) Bugfix for Seed file upload problem via ftpc See: http://www.yacy-forum.de/viewtopic.php?p=11662#11662 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@984 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/net/ftpc.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/de/anomic/net/ftpc.java b/source/de/anomic/net/ftpc.java index dae3a0182..6e5d92c8b 100644 --- a/source/de/anomic/net/ftpc.java +++ b/source/de/anomic/net/ftpc.java @@ -1902,6 +1902,10 @@ cd .. c.exec("cd " + remotePath, false); } c.exec("binary", false); + if (localFile.isAbsolute()) { + c.exec("lcd " + localFile.getParent(),false); + localFile = new File(localFile.getName()); + } c.exec("put " + localFile.toString() + ((remoteName.length() == 0) ? "" : (" " + remoteName)), false); c.exec("close", false); c.exec("exit", false);