On 7/17/07, Ari Brown <ari / aribrown.com> wrote:

> ftp.dir('*/')
> # => Every file in every directory and all the file permissions to
> accompany them.

Leave off the forward slash after the asterisk, and then with your list:

1. select out the ones starting with 'd' since those will be your directories
2. pull out the last token of each entry which will be the directory name.

You may or may not be concerned with linked directories, which will
start with an 'l' instead.

hth,
Todd