[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [bug #45274] -nc option may delete HTML-files
From: |
anonymous |
Subject: |
[Bug-wget] [bug #45274] -nc option may delete HTML-files |
Date: |
Mon, 08 Jun 2015 12:04:38 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0 |
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: address@hidden
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-wget] [bug #45274] -nc option may delete HTML-files,
anonymous <=