How to move a file on remote FTP server to an directory on same FTP server using Net::FTP in ruby script

前端 未结 3 1700
甜味超标
甜味超标 2021-02-08 09:55

How to move a file on remote FTP server to an directory on same FTP server using Net::FTP in ruby script. I know the file name and I have created a directory using ftp.mkdir b

3条回答
  •  清歌不尽
    2021-02-08 10:18

    There are putbinaryfile and puttextfile instance methods. Is that not enough ? Or if you just want to move in a scope of ftp server, there is rename method.

提交回复
热议问题