次のコードの何が問題なのか、誰か説明してもらえますか? 別のホスト、FTPClientConfigs を試してみましたが、firefox/filezilla から適切にアクセスできます...問題は、例外なく常に空のファイルリストを取得することです (files.length == 0)。Maven と共にインストールされた commons-net-2.1.jar を使用します。
FTPClientConfig config = new FTPClientConfig(FTPClientConfig.SYST_L8);
FTPClient client = new FTPClient();
client.configure(config);
client.connect("c64.rulez.org");
client.login("anonymous", "anonymous");
client.enterRemotePassiveMode();
FTPFile[] files = client.listFiles();
Assert.assertTrue(files.length > 0);