Move the recursive call to lister() up inside the first loop so that you only cwd() once per directory instead of cwd(), cdup(), cwd() for each directory. That will, at most, make it run twice as fast.
Any faster method (other than just caching) would require the cooperation of the site serving the FTP files.
- tye (but my friends call me "Tye")In reply to (tye)Re: A better way to recurse FTP directories
by tye
in thread A better way to recurse FTP directories
by Snuggle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |