[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | WIP: Implementation of -I/-X options (!383)

From: Tim Rühsen
Subject: Re: [Wget-dev] wget2 | WIP: Implementation of -I/-X options (!383)
Date: Fri, 17 Aug 2018 07:46:39 +0000

Just simply add `-d -o log` and, after the command is done, search for 
dummy.txt in `log`.

You'll see
17.093908.678 *url = http://amaya.tk/wget/firstdir/pub/dummy.txt
17.093908.678 *3 http://amaya.tk/wget/firstdir/pub/dummy.txt
Adding URL: http://amaya.tk/wget/firstdir/pub/dummy.txt
17.093908.678 host_pattern[0] 'amaya.tk' - amaya.tk
17.093908.678 local filename = 'amaya.tk/wget/firstdir/pub/dummy.txt'
17.093908.678 directory[1] '*/pub' - 'wget/firstdir/pub' -
17.093908.678 directory[0] '*/pub' - 'wget/firstdir/pub' -

Then it should make 'click' (it did here ;-)). `*/pub` doesn't match 
`wget/firstdir/pub` because we use fnmatch (file name match). `*/*/pub` would 
be correct here. Both options are for directory matching, not for string 
matching. I also sometimes forget that. Please put this into the docs with an 
example !

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]