How to list directory content of remote FTP, recursively

后端 未结 5 1257
再見小時候
再見小時候 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:43

    Assuming you are using simple ftp via command line, Use dir command with -Rl option to search recursively and copy it to a file and then search the file using grep, find or whatever way is supported on your OS.

    ftp> dir -Rl education.txt output to local-file: education.txt? y 227 Entering Passive Mode (9,62,119,15,138,239) 150 Opening ASCII mode data connection for file list 226 Transfer complete

提交回复
热议问题