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

 
 

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

Submitted by:  jaivuk <jaivuk>
Submitted on:  Wed 28 Sep 2011 06:12:31 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Awaiting Approval
Privacy: PublicAssigned to: Giuseppe Scrivano <gscrivano>
Originator Name: jaivukOpen/Closed: Open
Release: 1.12Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: No

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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 http://www.example.com/user/ then I get:
http://www.example.com/user/folder/file1.txt also index.html is created in http://www.example.com/user which is fine.

However when I try to do it again then file1.ext is skipped which is fine, but http://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 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 gscrivano (Posted a comment)
  • -unavailable- added by jaivuk (Submitted the item)
  •  

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 11 Dec 2011 11:37:03 AM UTCgscrivanoStatusNone=>Awaiting Approval
      Assigned toNone=>gscrivano

    Back to the top


    Powered by Savane 3.1-cleanup