wget a directory structure question

Can you tell me how to download the directory tree just starting from "project1/" in this URL?

"https://somesite.com/projects/t/project1/"

This command does not seem to do what I want as it downloads also files from the upper hierarchy:

wget --no-check-certificate --http-user=user --http-password=user -m -k -K -e robots=off https://somesite.com/projects/t/project1/ -o ./myLog.log

Thanks.

Looks like you want to perform a recursive retrieval.
Check the -r or --recursive option of wget :b:

The -m (mirroring) option enables recursive fetching. What's needed is the no-parent option:

Regards,
Alister

1 Like

Good one! I did not notice that -m option in OP's posting until now.

1 Like

thank you alister, the -np option works!