ruby net-sftp 逐行读取文件 我使用 ruby 2.0.0 和 rails 4.0.0.我有类似的东西: 需要'net/sftp'sftp = Net::SFTP.start('ftp.app.com','用户名', :password =>'密码')sftp.file.open("/path/to/remote/file.csv", "r") 做 |f|把 f.gets结尾 这会在 FTP 站点上打开文件,但它只放置 .. 发布时间:2021-07-23 19:52:29 ruby-on-rails ruby sftp net-sftp 其他开发