From: Vincent Arnoux Date: 2006-09-12T17:45:04+09:00 Subject: Re: Net::FTP questions... Hi, Le mardi 12 septembre 2006 à 07:39 +0900, Lincoln Anderson a écrit : > Here's where my problem comes in. How can I tell from the list array > whether an item is a directory or a file to be copied? Is there > something I can use (such as an FTP command) to catch a clue on how to > implement this? I know this is possible, as ftpmirror is done with > PERL and Ruby can do anything PERL can do - better :) The output of FTP#ls should be something like : drwxr-x--- 2 login ftp 96 Sep 11 16:07 mydir -rwxr-x--- 2 login ftp 96 Sep 11 16:07 myfile So you will know an entry is a directory if the string begins by "d". Vincent