I want to download files from a site, but I want to exclude specific directories. I am using the following command:
wget --user="xxxx" --password="xxx" -r -np -nH --cut-dirs=7 \ --reject "index.html*" --exclude-directories=/abc/xyz/pqr/a \ https://www.ftpsite.com/abc/xyz/pqr/
pqr/ directory there are 3 directories, out of which I want to exclude directory
But using the above command, it downloads all 3 directories even after specifying the exclude-directory option.