I seem to be running into some dorkish problem downloading the contents
of a directory.

I have some of the files in the directory, downloaded, so I turned on
timestamping (-N).  My .wgetrc has:
-------------
follow-ftp=on
user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
timestamping=on
progress=dot:binary
no-parent=on
-------------
But I've tried various combinations to download the "rpms" in the
directory:
wget -r -nH http://mirrors.kernel.org/suse/i386/9.3/suse/i586
wget -r -nH http://mirrors.kernel.org/suse/i386/9.3/suse/i586/.
   (both just download an index.html file)
wget -r -nH http://mirrors.kernel.org/suse/i386/9.3/suse/i586/index.html
   (returns file not found)

Tried simarly forms using ftp:
wget -r -nH ftp://mirrors.kernel.org/suse/i386/9.3/suse/i586 [...]
   (worked less well than http, more "404" errors)

Also hoped that wildcards might work in ftp, like:

wget -r -nH ftp://mirrors.kernel.org/suse/i386/9.3/suse/i586/\*.rpm
wget -r -nH --cut-dirs=4 ftp://mirrors.kernel.org/suse/i386/9.3/suse/i586/\*

but I kept ketting the error message:
--------------------------------
Warning: wildcards not supported in HTTP.
--16:57:02--  ftp://mirrors.kernel.org/suse/i386/9.3/suse/i586/*
          => `i586/*'
Resolving ishtar... 192.168.3.1
Connecting to ishtar|192.168.3.1|:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
16:57:03 ERROR 404: Not Found.

FINISHED --16:57:03--
Downloaded: 0 bytes in 0 files
--------------------------

Originally tried it with cut-dirs=4 but also tried w/o "cut-dirs".
Apparently "ftp" through a proxy qualifies as "http" (?).

This _seems_ like it should be a simple task.

I do know how to work around the problem -- I can manually parse (write
some sort of script) the downloaded "index.html" for the directories
and use specific filenames for download, *BUT*...um

like this doesn't seem like it should be 'rocket science'...am I
missing something obvious?  I also tried adding "-A rpm" to
specifically follow ".rpm" "links".  No difference.  Sorry
to ask what is probably a "simplistic" question, but what am I
missing?

Thanks IA,
Linda

Reply via email to