How can i exclude folders from being downloaded using wget ? For example if i wanted to download all of the files and folders of a subfolder:

https://index.org has the following folders










For example i want to download only subfolder 3 from the Folder1.

I tried:

wget -r -np https://index.org/Folder1 -X /subfolder1, /subfolder2
  • 2
  • Hint: don't use a space between the list of excluded folders (/subfolder1,/subfolder2 instead of /subfolder1, /subfolder2). One question, why not do wget -r -np https://index.org/Folder1/subfolder3 ? – msb Sep 18 '19 at 1:16

Your Answer

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

Browse other questions tagged or ask your own question.