Class: FTP (Net)

Overview
Module Structure
Class Hierarchy
Constants
FTP::FTP_PORT
FTP::CRLF
FTP::DEFAULT_BLOCKSIZE
FTP::MDTM_REGEXP
Class Methods
FTP.open / 4
Instance Aliases
FTP#lastresp
FTP#ls
FTP#dir
FTP#getdir
Instance Attributes
FTP#binary [RW]
FTP#passive [RW]
FTP#debug_mode [RW]
FTP#resume [RW]
FTP#welcome [R]
FTP#last_response_code [R]
FTP#last_response [R]
Instance Methods
FTP#initialize / 4
FTP#return_code
FTP#return_code= / 1
FTP#open_socket / 2
FTP#connect / 2
FTP#set_socket / 2
FTP#sanitize / 1
FTP#putline / 1
FTP#getline
FTP#getmultiline
FTP#getresp
FTP#voidresp
FTP#sendcmd / 1
FTP#voidcmd / 1
FTP#sendport / 2
FTP#makeport
FTP#makepasv
FTP#transfercmd / 2
FTP#getaddress
FTP#login / 3
FTP#retrbinary / 3
FTP#retrlines / 1
FTP#storbinary / 5
FTP#storlines / 3
FTP#getbinaryfile / 2
FTP#gettextfile / 2
FTP#get / 2
FTP#putbinaryfile / 2
FTP#puttextfile / 2
FTP#put / 2
FTP#acct / 1
FTP#nlst / 1
FTP#list / 2
FTP#rename / 2
FTP#delete / 1
FTP#chdir / 1
FTP#size / 1
FTP#mtime / 2
FTP#mkdir / 1
FTP#rmdir / 1
FTP#pwd
FTP#system
FTP#abort
FTP#status
FTP#mdtm / 1
FTP#help / 1
FTP#quit
FTP#noop
FTP#site / 1
FTP#close
FTP#closed?
FTP#parse227 / 1
FTP#parse228 / 1
FTP#parse229 / 1
FTP#parse257 / 1
is a submodule of
module: Net   
includes
  MonitorMixin   
inherits from
  Object ( Builtin-Module )
is inherited by
  FTPTLS ( Net )
has properties
constant: FTP_PORT   
constant: CRLF   
constant: DEFAULT_BLOCKSIZE   
attribute: binary [RW]   
attribute: passive [RW]   
attribute: debug_mode [RW]   
attribute: resume [RW]   
attribute: welcome [R]   
attribute: last_response_code [R]   
alias: lastresp last_response_code   
attribute: last_response [R]   
class method: open / 4   
method: initialize / 4   
method: return_code   
method: return_code= / 1   
method: open_socket / 2   
method: connect / 2   
method: set_socket / 2   
method: sanitize / 1   
method: putline / 1   
method: getline   
method: getmultiline   
method: getresp   
method: voidresp   
method: sendcmd / 1   
method: voidcmd / 1   
method: sendport / 2   
method: makeport   
method: makepasv   
method: transfercmd / 2   
method: getaddress   
method: login / 3   
method: retrbinary / 3   
method: retrlines / 1   
method: storbinary / 5   
method: storlines / 3   
method: getbinaryfile / 2   
method: gettextfile / 2   
method: get / 2   
method: putbinaryfile / 2   
method: puttextfile / 2   
method: put / 2   
method: acct / 1   
method: nlst / 1   
method: list / 2   
alias: ls list   
alias: dir list   
method: rename / 2   
method: delete / 1   
method: chdir / 1   
method: size / 1   
constant: MDTM_REGEXP   
method: mtime / 2   
method: mkdir / 1   
method: rmdir / 1   
method: pwd   
alias: getdir pwd   
method: system   
method: abort   
method: status   
method: mdtm / 1   
method: help / 1   
method: quit   
method: noop   
method: site / 1   
method: close   
method: closed?   
method: parse227 / 1   
method: parse228 / 1   
method: parse229 / 1   
method: parse257 / 1   
is defined at
#72 in net/ftp.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
  module: MonitorMixin
  module: Net
class: FTP     
class: FTPTLS     

Class Hierarchy

Object ( Builtin-Module )
FTP ( Net )
includes
  MonitorMixin   
has properties
constant: FTP_PORT   
constant: CRLF   
constant: DEFAULT_BLOCKSIZE   
attribute: binary [RW]   
attribute: passive [RW]   
attribute: debug_mode [RW]   
attribute: resume [RW]   
attribute: welcome [R]   
attribute: last_response_code [R]   
alias: lastresp last_response_code   
attribute: last_response [R]   
class method: open / 4   
method: initialize / 4   
method: return_code   
method: return_code= / 1   
method: open_socket / 2   
method: connect / 2   
method: set_socket / 2   
method: sanitize / 1   
method: putline / 1   
method: getline   
method: getmultiline   
method: getresp   
method: voidresp   
method: sendcmd / 1   
method: voidcmd / 1   
method: sendport / 2   
method: makeport   
method: makepasv   
method: transfercmd / 2   
method: getaddress   
method: login / 3   
method: retrbinary / 3   
method: retrlines / 1   
method: storbinary / 5   
method: storlines / 3   
method: getbinaryfile / 2   
method: gettextfile / 2   
method: get / 2   
method: putbinaryfile / 2   
method: puttextfile / 2   
method: put / 2   
method: acct / 1   
method: nlst / 1   
method: list / 2   
alias: ls list   
alias: dir list   
method: rename / 2   
method: delete / 1   
method: chdir / 1   
method: size / 1   
constant: MDTM_REGEXP   
method: mtime / 2   
method: mkdir / 1   
method: rmdir / 1   
method: pwd   
alias: getdir pwd   
method: system   
method: abort   
method: status   
method: mdtm / 1   
method: help / 1   
method: quit   
method: noop   
method: site / 1   
method: close   
method: closed?   
method: parse227 / 1   
method: parse228 / 1   
method: parse229 / 1   
method: parse257 / 1   
  FTPTLS     

Constants

FTP::FTP_PORT

#76 in net/ftp.rb

FTP_PORT = 21   

FTP::CRLF

#77 in net/ftp.rb

CRLF = "\r\n"   

FTP::DEFAULT_BLOCKSIZE

#78 in net/ftp.rb

DEFAULT_BLOCKSIZE = 4096   

FTP::MDTM_REGEXP

#695 in net/ftp.rb

MDTM_REGEXP = /^(\d\d\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)/ # :nodoc:   

Class Methods

FTP.open / 4

#111 in net/ftp.rb

open ( host ,
  user = nil ,
  passwd = nil ,
  acct = nil )

Instance Aliases

FTP#lastresp

#100 in net/ftp.rb

lastresp last_response_code   

FTP#ls

#637 in net/ftp.rb

ls list   

FTP#dir

#638 in net/ftp.rb

dir list   

FTP#getdir

#729 in net/ftp.rb

getdir pwd   

Instance Attributes

FTP#binary [RW]

#82 in net/ftp.rb

FTP#passive [RW]

#85 in net/ftp.rb

FTP#debug_mode [RW]

#89 in net/ftp.rb

FTP#resume [RW]

#93 in net/ftp.rb

FTP#welcome [R]

#96 in net/ftp.rb

FTP#last_response_code [R]

#99 in net/ftp.rb

FTP#last_response [R]

#103 in net/ftp.rb

Instance Methods

FTP#initialize / 4

#129 in net/ftp.rb

initialize ( host = nil ,
  user = nil ,
  passwd = nil ,
  acct = nil )

FTP#return_code

#144 in net/ftp.rb

return_code

FTP#return_code= / 1

#150 in net/ftp.rb

return_code= ( s )

FTP#open_socket / 2

#154 in net/ftp.rb

open_socket ( host ,
  port )

FTP#connect / 2

#170 in net/ftp.rb

connect ( host ,
  port = FTP_PORT )

FTP#set_socket / 2

#183 in net/ftp.rb

set_socket ( sock ,
  get_greeting = true )

FTP#sanitize / 1

#192 in net/ftp.rb

sanitize ( s )

FTP#putline / 1

#201 in net/ftp.rb

putline ( line )

FTP#getline

#210 in net/ftp.rb

getline

FTP#getmultiline

#220 in net/ftp.rb

getmultiline

FTP#getresp

#234 in net/ftp.rb

getresp

FTP#voidresp

#250 in net/ftp.rb

voidresp

FTP#sendcmd / 1

#261 in net/ftp.rb

sendcmd ( cmd )

FTP#voidcmd / 1

#271 in net/ftp.rb

voidcmd ( cmd )

FTP#sendport / 2

#278 in net/ftp.rb

sendport ( host ,
  port )

FTP#makeport

#291 in net/ftp.rb

makeport

FTP#makepasv

#300 in net/ftp.rb

makepasv

FTP#transfercmd / 2

#311 in net/ftp.rb

transfercmd ( cmd ,
  rest_offset = nil )

FTP#getaddress

#348 in net/ftp.rb

getaddress

FTP#login / 3

#372 in net/ftp.rb

login ( user = "anonymous" ,
  passwd = nil ,
  acct = nil )

FTP#retrbinary / 3

#401 in net/ftp.rb

retrbinary ( cmd ,
  blocksize ,
  rest_offset = nil )

FTP#retrlines / 1

#421 in net/ftp.rb

retrlines ( cmd )

FTP#storbinary / 5

#446 in net/ftp.rb

storbinary ( cmd ,
  file ,
  blocksize ,
  rest_offset = nil ,
  &block )

FTP#storlines / 3

#470 in net/ftp.rb

storlines ( cmd ,
  file ,
  &block )

FTP#getbinaryfile / 2

#493 in net/ftp.rb

getbinaryfile ( remotefile ,
  localfile = File.basename(remotefile )

FTP#gettextfile / 2

#518 in net/ftp.rb

gettextfile ( remotefile ,
  localfile = File.basename(remotefile )

FTP#get / 2

#534 in net/ftp.rb

get ( remotefile ,
  localfile = File.basename(remotefile )

FTP#putbinaryfile / 2

#548 in net/ftp.rb

putbinaryfile ( localfile ,
  remotefile = File.basename(localfile )

FTP#puttextfile / 2

#573 in net/ftp.rb

puttextfile ( localfile ,
  remotefile = File.basename(localfile )

FTP#put / 2

#586 in net/ftp.rb

put ( localfile ,
  remotefile = File.basename(localfile )

FTP#acct / 1

#598 in net/ftp.rb

acct ( account )

FTP#nlst / 1

#606 in net/ftp.rb

nlst ( dir = nil )

FTP#list / 2

#622 in net/ftp.rb

list ( *args ,
  &block )

FTP#rename / 2

#643 in net/ftp.rb

rename ( fromname ,
  toname )

FTP#delete / 1

#654 in net/ftp.rb

delete ( filename )

FTP#chdir / 1

#668 in net/ftp.rb

chdir ( dirname )

FTP#size / 1

#686 in net/ftp.rb

size ( filename )

FTP#mtime / 2

#701 in net/ftp.rb

mtime ( filename ,
  local = false )

FTP#mkdir / 1

#710 in net/ftp.rb

mkdir ( dirname )

FTP#rmdir / 1

#718 in net/ftp.rb

rmdir ( dirname )

FTP#pwd

#725 in net/ftp.rb

pwd

FTP#system

#734 in net/ftp.rb

system

FTP#abort

#745 in net/ftp.rb

abort

FTP#status

#759 in net/ftp.rb

status

FTP#mdtm / 1

#769 in net/ftp.rb

mdtm ( filename )

FTP#help / 1

#779 in net/ftp.rb

help ( arg = nil )

FTP#quit

#790 in net/ftp.rb

quit

FTP#noop

#797 in net/ftp.rb

noop

FTP#site / 1

#804 in net/ftp.rb

site ( arg )

FTP#close

#813 in net/ftp.rb

close

FTP#closed?

#820 in net/ftp.rb

closed?

FTP#parse227 / 1

#824 in net/ftp.rb

parse227 ( resp )

FTP#parse228 / 1

#843 in net/ftp.rb

parse228 ( resp )

FTP#parse229 / 1

#875 in net/ftp.rb

parse229 ( resp )

FTP#parse257 / 1

#894 in net/ftp.rb

parse257 ( resp )