Is there a ftp crawler in ruby on rails?

Hi,

I'm a newbie to ROR. I wanted to write some code which can help me to
list and then index all the paths on a remote server. Is there a ftp
server crawler in ruby?

Thanks,
Narayana

Hi,

maybe you could use the Dir class:

http://www.ruby-doc.org/core-1.9.3/Dir.html

By the way, I didn't understand very well what you want to do...

Best Regards,
Everaldo

Hi Everaldo,

Thanks for the info. Im trying to make a database of (Name(can be an ID
or filename), Path) of certain directories on several paths residing on
remote servers.

Thanks,
Narayana.

When you do watch out for this: there is no standard for how FTP formats directory listings. Different OSs and different FTP servers use different formats, so you just have to figure them out. It's kind of an ugly problem.

Take a look at Net::FTP, in the standard library:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/ftp/rdoc/Net/FTP.html

It should do what you’re looking for.

–Matt Jones