FTPClient.jl icon indicating copy to clipboard operation
FTPClient.jl copied to clipboard

How to download recursivelly a whole directory - or at least get the information if a certain element is a dir ?

Open sylvaticus opened this issue 2 years ago • 0 comments

Hello, I need to recursively download a directory from an anonymous FTP client:

ftp_init();
ftp = FTP(hostname = "palantir.boku.ac.at", username = "anonymous", password = "")
cd(ftp, "Public/ImprovedForestCharacteristics")
pwd(ftp)
readdir(ftp)

How can I download the whole ImprovedForestCharacteristics folder, or at least which of the outputs of readdir is a file or a directory in order to programmatically implement the recursion? The equivalent command with wget would be: wget -r -nH --cut-dirs=2 -nc ftp://[email protected]//Public/ImprovedForestCharacteristics

sylvaticus avatar Jul 12 '23 10:07 sylvaticus