On Jul 17, 2007, at 1:54 PM, Todd Benson wrote:

> 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.


Thanks! But is there a different command I can use to get just the  
names? I happen to know that where I'm working, what I first collect  
from my ftp.dir('*') will be all directories. How can I use that to  
my advantage?

aRi
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.