method
abort
v2_1_10 -
Show latest stable
- Class:
Net::FTP
abort()public
Aborts the previous command (ABOR command).
# File lib/net/ftp.rb, line 877
def abort
line = "ABOR" + CRLF
print "put: ABOR\n" if @debug_mode
@sock.send(line, Socket::MSG_OOB)
resp = getmultiline
unless ["426", "226", "225"].include?(resp[0, 3])
raise FTPProtoError, resp
end
return resp
end Related methods
- Instance methods
- abort
- acct
- binary=
- chdir
- close
- closed?
- connect
- delete
- dir
- get
- getbinaryfile
- getdir
- gettextfile
- help
- list
- login
- ls
- mdtm
- mkdir
- mtime
- nlst
- noop
- put
- putbinaryfile
- puttextfile
- pwd
- quit
- read_timeout=
- rename
- retrbinary
- retrlines
- return_code
- return_code=
- rmdir
- sendcmd
- set_socket
- site
- size
- status
- storbinary
- storlines
- system
- voidcmd
- Class methods
- new
- open
- Private methods
-
getline -
getmultiline -
getresp -
makepasv -
makeport -
open_socket -
parse227 -
parse228 -
parse229 -
parse257 -
parse_pasv_ipv4_host -
parse_pasv_ipv6_host -
parse_pasv_port -
putline -
sanitize -
send_type_command -
sendport -
transfercmd -
voidresp -
with_binary