'net/ftp' File.exist?

R

Rodrigo Bermejo

Mhalcon said:
Como puedo saber si existe un archivo en un hosts remoto via ftp ????

ftp.chdir(folder)
p "file existe" if not ftp.nlst(filename).empty?

-r.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,107
Latest member
AmeliaAmad

Latest Threads

Top