// in einer Methodetry { RemotePath = "ftp://www.patrick-hypscher.com"; FTPClient Client = new FTPClient(RemotePath); utilities.download(Client,RemotePath,"web");}catch (Throwable e) { System.out.println("Fehler beim Download der Dateien: " + e);}// in der Klasse utilities:public static boolean download(FTPClient Client, String fromPath, String toDir)throws IOException, com.enterprisedt.net.ftp.FTPException { String[] Files = Client.dir("*"); for (int i=0; i<Files.length; i++) { System.out.println("Datei: " + Files[i]); File RemoteFile = new File(fromPath + Files[i]); if(RemoteFile.isDirectory()) { Client.chdir(Files[i]); RemoteFile.mkdir(); download(Client,fromPath + "/" + Files[i], toDir + Files[i] + File.separator); } else { Client.get(toDir + Files[i],fromPath + Files[i]); return true; } } return true;}