bugGNU Wget - Bugs: bug #34325, --exclude-directories wildcards do...

 
 

bug #34325: --exclude-directories wildcards do not work properly

Submitter:  Martin F. Krafft <madduck>
Submitted:  Sun 18 Sep 2011 07:46:52 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  trunk Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 18 Sep 2011 07:49:16 AM UTC, comment #2: 

Grr, I dislike markup. Anyway, using + instead of the asterisk:

  … -A +.txt -X +/2011/+

Martin F. Krafft <madduck>
Sun 18 Sep 2011 07:48:26 AM UTC, comment #1: 

The command-line got mangled and should have been

… -A \*.txt -X \*/2011/\* …

Martin F. Krafft <madduck>
Sun 18 Sep 2011 07:46:52 AM UTC, original submission:  

Try this (stupid example):

  wget -m -np -A .txt -X /2011/* http://www.debian.org/News/

wget still traverses the entire 2011 hierarchy, even though it
should really just ignore it. As a reminder, here is the info page
entry for -X:

  `-X LIST' `--exclude-directories=LIST' Specify a comma-separated
  list of directories you wish to exclude from download (see
  "Directory-Based Limits").  Elements of LIST may contain
  wildcards.

It says "exclude from download", which may mean that it should still
crawl the contents for links to contents outside of the listed
directories. However, in the context of its counterpart -I, which
says "follow when downloading", I think the intended use is to not
follow links into the listed directories.

Martin F. Krafft <madduck>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by madduck (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-5884.
    Corresponding source code