Author: danielr
Date: 2008-03-06 12:59:23 +0100 (Thu, 06 Mar 2008)
New Revision: 4531

Modified:
   trunk/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
Log:
fixed error 'FTPC cannot change directory'

Modified: trunk/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
===================================================================
--- trunk/source/de/anomic/plasma/crawler/plasmaFTPLoader.java  2008-03-05 
22:57:53 UTC (rev 4530)
+++ trunk/source/de/anomic/plasma/crawler/plasmaFTPLoader.java  2008-03-06 
11:59:23 UTC (rev 4531)
@@ -215,10 +215,10 @@
                     htCache = createCacheEntry(entry, mimeType, fileDate);
 
                     // change into working directory
-                    ftpClient.exec("cd \"" + fullPath + "\"", false);
+                    //ftpClient.exec("cd \"" + path + "\"", false);
 
                     // download the remote file
-                    ftpClient.exec("get \"" + file + "\" \"" + 
cacheFile.getAbsolutePath() + "\"", false);
+                    ftpClient.exec("get \"" + fullPath + "\" \"" + 
cacheFile.getAbsolutePath() + "\"", false);
                 } else {
                     // if the response has not the right file type then reject 
file
                     this.log.logInfo("REJECTED WRONG MIME/EXT TYPE " + 
mimeType + " for URL " + entry.url().toString());

_______________________________________________
YaCy-svn mailing list
YaCy-svn@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/yacy-svn

Antwort per Email an