wget recursively with -np option still ascends to parent directory

Posted by vectra on Super User See other posts from Super User or by vectra
Published on 2011-03-04T01:40:56Z Indexed on 2011/03/04 23:27 UTC
Read the original article Hit count: 231

Filed under:
|
|
|
|

tl;dr: will `wget --no-parrent -r ' download from a directory above the given url's directory?

when using wget to download, say images, recursively from example.com/a/b with the -r and -np options, will a picture that is under example.com/a/c/ be downloaded when example.com/a/b/ delivers a html-file containing a link to the picture? if so, how do i get all pictures, that are in a folder and it's subfolders and only those? the description of the option --no-parent says "Do not ever ascend to the parent directory when retrieving recursively". anyway directory browsing delivers a link to the parent directory, which wget will follow, despite mentioned option. now what did i miss?

edit: using GNU Wget 1.12

© Super User or respective owner

Related posts about ubuntu

Related posts about download