Snooping an URL
[1/2] from: carlos::lorenz::net at: 25-Jul-2001 8:45
Hi rebols,
How can I use FTP functions to give me back all existing directories behind
an URL?
Thanks
Carlos
[2/2] from: chris:ross-gill at: 26-Jul-2001 8:14
Hi Carlos,
> How can I use FTP functions to give me back all existing
> directories behind an URL?
I have a recursive file lister on my reb site, 'Chris RG', 'rebol' and then
'recurse'. If you just need a list of directories, change the line:
either dir? join dir file [
to
if dir? join dir file [
and delete the second condition block. It doesn't handle permissions yet.
Usage:
recurse-read ftp://host/dir
- Chris