I cannot download the files correctly in this website.

I use the command which is shown in this question

wget -nd -r -l 10  -e robots=off http://biomet.ucdavis.edu/Evapotranspiration/

It can truly download the files,but unfortunately,they are download in a single folder,instead of the same structure just like in the website.

What should I do to download all these file in the same structure?


The option -nd in your command means no-directories.

You should remove the -nd option from your command, and you'll get the same structure just like in the website:

wget -r -l 10  -e robots=off http://biomet.ucdavis.edu/Evapotranspiration/

wget man

2.6 Directory Options

‘-nd’ ‘--no-directories’

Do not create a hierarchy of directories when retrieving recursively. With this option turned on, all files will get saved to the current directory, without clobbering (if a name shows up more than once, the filenames will get extensions ‘.n’).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.