I just figured out a way to do it:
$ wget --spider -r --no-parent http://some.served.dir.ca/
It's quite verbose, so you need to pipe through grep
a couple of times depending on what you're after, but the information is all there. It looks like it prints to stderr, so append 2>&1
to let grep
at it. I grepped for ".tar.gz" to find all of the tarballs the site had to offer.
Note that wget
writes temporary files in the working directory, and doesn't clean up its temporary directories. If this is a problem, you can change to a temporary directory:
$ (cd /tmp && wget --spider -r --no-parent http://some.served.dir.ca/)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…