With wget -A option it is possible to set file extensions that are only 
allowed to be saved. However, when used with -r option, there is a bug.

As normal, if a file with the same name that is being downloaded already 
exists, a dot and a number gets appended to the file name. Next the -A 
option incorrectly compares the extension of the _local_ file name 
(which extension now is for example ".1" or ".2") so a file might get 
rejected even if the real extension matches the list. If done 
correctly, I think the file extension comparison should instead be done 
with the remote file name. Otherwise a local file like "sharon.jpeg.1" 
(with a real name of "sharon.jpeg") gets rejected, even if -A 
is "jpeg".

This bug does not appear without using -r option. Wget version is 
1.10.2.

Reply via email to