bugGNU Wget - Bugs: bug #45274, -nc option may delete HTML-files

 
 

bug #45274: -nc option may delete HTML-files

Submitted by:  None
Submitted on:  Mon 08 Jun 2015 12:04:37 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: MikeOriginator Email: -unavailable-
Open/Closed: OpenRelease: 1.16.2
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 08 Jun 2015 12:04:37 PM UTC, original submission:

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.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1