URL:
  <http://savannah.gnu.org/bugs/?45274>

                 Summary: -nc option may delete HTML-files
                 Project: GNU Wget
            Submitted by: None
            Submitted on: Mo 08 Jun 2015 12:04:37 UTC
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Mike
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.16.2
        Operating System: GNU/Linux
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: None

    _______________________________________________________

Details:

The documentation implies to some degree that the -nc option will never touch
existing files. So I tried to get new images on a site using:

wget -r -N -A "*.html" http://site.com/
wget -r -nc -A "*.jpg" http://site.com/

The second invocation reads all html files from disk and deletes them
afterwords. This is surprising. A workaround could be to figure out all
extensions used for html-files on the site and add them to the -A option.

I think -nc should be changed to take precedence over other options like -A.
This change will probably not break any existing script, since deleting files
can be had much easier.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45274>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/


Reply via email to