Am Freitag, 4. Oktober 2013, 22:26:18 schrieb e-letter:
> Readers,
> 
> Just learned an interesting observation: navigated to a directory
> containing some audio files (mp3, ogg, etc.)
> 
> Activated the command:
> 
> wget -r -A *.mp3 http://url/to/mp3/files
> 
> After download completed, some the majority mp3 files became empty
> directories, but curiously a minor few (estimate 10 %) remained as
> audio files:
> 
> ls showed
> 
> audio1.mp3 became audio1.mp3/
> 
> The moral, be careful fellow novices! :)

The moral is that posts without any details doesn't help anybody.

Please be so kind and post the output of
        wget --version
and
        wget -d -r -A *.mp3 http://url/to/mp3/files

I am absolutely not able to reproduce the described behaviour without further 
details.

But if your shell expands *.mp3, you should have seen error messages.
In that case, try
        wget -d -r -A "*.mp3" http://url/to/mp3/files

But that has nothing to do with Wget. It is a general problem in understanding 
how shells work. Shell wildcard expansion often hits the novice :-(

What do you think how we can help novices ?
Maybe we should explicitely warn in the docs of -A/-R about shell wildcard 
expansion ?

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to