How to list directory content of remote FTP, recursively

后端 未结 5 1268
再見小時候
再見小時候 2021-02-02 10:56

After downloading files from a remote UNIX FTP server, you want to verify that you have downloaded all the files correctly. Minimal you will get information similar to \"dir /s\

5条回答
  •  星月不相逢
    2021-02-02 11:50

    You can use ftp.listFiles("directory") from apache-commons-net and can write your own BFS or DFS to fetch all the files recursively.

提交回复
热议问题