Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed error 'FTPC cannot change directory'

danielr6788f8f7c19a
diff --git a/source/de/anomic/plasma/crawler/plasmaFTPLoader.java b/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
index 004c902aa..8872a9a0b 100644
--- a/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
+++ b/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
@@ -215,10 +215,10 @@ public class plasmaFTPLoader {
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());