Ruby 使用 FTP 上传文件
- 作者: ISorry
- 来源: 51数据库
- 2022-08-12
require 'net/ftp'
ftp = Net::FTP.new('ftp.domain.com')
ftp.passive = true
ftp.login
ftp.chdir('/your/folder/name/here')
ftp.putbinaryfile('local_file')
ftp.close
推荐阅读
