Re: Why --exclude-directories, and not --exclude-paths?

2007-07-19 Thread Hrvoje Niksic
Micah Cowan [EMAIL PROTECTED] writes: I don't know. The reason directories are matched separately from files is because files often *don't* match the pattern you've chosen for directories. For example, -X/etc should exclude anything under /etc, such as /etc/passwd, but also

Re: Why --exclude-directories, and not --exclude-paths?

2007-07-19 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hrvoje Niksic wrote: Micah Cowan [EMAIL PROTECTED] writes: I don't know. The reason directories are matched separately from files is because files often *don't* match the pattern you've chosen for directories. For example, -X/etc should

Re: Why --exclude-directories, and not --exclude-paths?

2007-07-17 Thread Hrvoje Niksic
Micah Cowan [EMAIL PROTECTED] writes: Someone just asked on the #wget IRC channel if there was a way to exclude files with certain names, and I recommended -X, without realizing that that option excludes directories, not files. My question is: why do we allow users to exclude directories,

Re: Why --exclude-directories, and not --exclude-paths?

2007-07-17 Thread Josh Williams
On 7/17/07, Hrvoje Niksic [EMAIL PROTECTED] wrote: -R allows excluding files. If you use a wildcard character in -R, it will treat it as a pattern and match it against the entire file name. If not, it will treat it as a suffix (not really an extension, it doesn't care about . being there or

Re: Why --exclude-directories, and not --exclude-paths?

2007-07-17 Thread Hrvoje Niksic
Micah Cowan [EMAIL PROTECTED] writes: Yes, but -R has a lesser degree of control over the sorts of pathnames that it can constrain: for instance, if one uses -Rmyprefix*, it will match files myprefix-foo.html and myprefix-bar.mp3; but it will also match notmyprefix.js, which is probably not

Why --exclude-directories, and not --exclude-paths?

2007-07-10 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Someone just asked on the #wget IRC channel if there was a way to exclude files with certain names, and I recommended -X, without realizing that that option excludes directories, not files. My question is: why do we allow users to exclude