-X stopps downloading on windows if URL ends not with slash
I tried only Lumito version Wget2 1.99.2 for Windows.
option -X --exclude-directories
With Option -X and URL without slash at the end download stopped! Only robots.txt gets downloaded:
wget2 -X /any-dir -p https://www.gnu.org
[0] Downloading 'https://www.gnu.org/robots.txt' ...
Saving 'www.gnu.org/robots.txt'
HTTP response 200 OK [https://www.gnu.org/robots.txt]
[0] Downloading 'https://www.gnu.org' ...
Without Option -X www.gnu.org/index.html gets saved together with a lot of page-requisites:
wget2 -p https://www.gnu.org
Same with Option -X but domain ending with Slash:
wget2 -X /any-dir -p https://www.gnu.org/
This issue occurs not with old GNU Wget.
Edited by snu7