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,
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:
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:
It should do what you’re looking for.
–Matt Jones