bugGNU Wget - Bugs: bug #34413, --no-clobber option does not work...


bug #34413: --no-clobber option does not work for directories

Submitter:  jaivuk <jaivuk>
Submitted:  Wed 28 Sep 2011 06:12:31 AM UTC
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  Awaiting Approval
Privacy:  Public Assigned to:  gscrivano
Originator Name:  jaivuk Open/Closed:  Open
Release:  1.12 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 11 Dec 2011 11:37:03 AM UTC, comment #1: 

I think you can either try with -N or specify some exclusion rules (-X) for directories you don't want to traverse.

Was the provided information helpful?

Giuseppe Scrivano <gscrivano>
Group administrator
Wed 28 Sep 2011 06:12:31 AM UTC, original submission:  

I need to recursively download small page which contains index.html which contains link to a folder which contains some files. Directory structure on the server is files/file1.txt
If I do wget wget -r -nc www.example.com/user/ then I get:
www.example.com/user/folder/file1.txt also index.html is created in www.example.com/user which is fine.

However when I try to do it again then file1.ext is skipped which is fine, but www.example.com/user/folder.1 is created as a file which contains the list of all files - in this case file1.txt
If I do it one more time folder.2 is created etc...

I searched and tried hard, but I did not find any option how to suppress this behaviour - it would be nice if folder.1 is not created at all (I have a flash drive) or at least if it could be deleted once that folder is checked.

Obviously the workaround is to do recursive deletion of all .1 files after each run, but this is not ideal.

Thank you very much.

jaivuk <jaivuk>


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

Attach Files:

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 gscrivano (Posted a comment)
  • -email is unavailable- added by jaivuk (Submitted the item)

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-11 gscrivano StatusNone Awaiting Approval
        Assigned toNone gscrivano

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code