in reply to A better way to recurse FTP directories

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")
  • Comment on (tye)Re: A better way to recurse FTP directories