daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest May 17th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'net/ftp'
  2. ftp = Net::FTP.open('host' ) do |ftp|
  3.     ftp.login('user','password')
  4.     list = ftp.nlst(ftp.pwd)
  5.     list.each do |name|
  6.           puts name
  7.     end
  8. end
RAW Paste Data
Top