= private = protected
rename(fromname, toname)
Renames a file on the server.
# File lib/net/ftp.rb, line 1122 def rename(fromname, toname) resp = sendcmd("RNFR #{fromname}") if !resp.start_with?("3") raise FTPReplyError, resp end voidcmd("RNTO #{toname}") end