Package pyarchive :: Module cb_ftp :: Class FTP
[show private | hide private]
[frames | no frames]

Class FTP

FTP --+
      |
     FTP


Method Summary
  storbinary(self, cmd, fp, blocksize, callback)
Store a file in binary mode.
    Inherited from FTP
  __init__(self, host, user, passwd, acct)
  abort(self)
Abort a file transfer.
  acct(self, password)
Send new account name.
  close(self)
Close the connection without assuming anything about it.
  connect(self, host, port)
Connect to host.
  cwd(self, dirname)
Change to a directory.
  debug(self, level)
Set the debugging level.
  delete(self, filename)
Delete a file.
  dir(self, *args)
List a directory in long form.
  getline(self)
  getmultiline(self)
  getresp(self)
  getwelcome(self)
Get the welcome message from the server.
  login(self, user, passwd, acct)
Login, default anonymous.
  makepasv(self)
  makeport(self)
Create a new socket and send a PORT command for it.
  mkd(self, dirname)
Make a directory, return its full pathname.
  nlst(self, *args)
Return a list of files in a given directory (default the current).
  ntransfercmd(self, cmd, rest)
Initiate a transfer over the data connection.
  putcmd(self, line)
  putline(self, line)
  pwd(self)
Return current working directory.
  quit(self)
Quit, and close the connection.
  rename(self, fromname, toname)
Rename a file.
  retrbinary(self, cmd, callback, blocksize, rest)
Retrieve data in binary mode.
  retrlines(self, cmd, callback)
Retrieve data in line mode.
  rmd(self, dirname)
Remove a directory.
  sanitize(self, s)
  sendcmd(self, cmd)
Send a command and return the response.
  sendeprt(self, host, port)
Send a EPRT command with the current host and the given port number.
  sendport(self, host, port)
Send a PORT command with the current host and the given port number.
  set_debuglevel(self, level)
Set the debugging level.
  set_pasv(self, val)
Use passive or active mode for data transfers.
  size(self, filename)
Retrieve the size of a file.
  storlines(self, cmd, fp)
Store a file in line mode.
  transfercmd(self, cmd, rest)
Like ntransfercmd() but returns only the socket.
  voidcmd(self, cmd)
Send a command and expect a response beginning with '2'.
  voidresp(self)
Expect a response beginning with '2'.

Class Variable Summary
int DEF_BLOCKSIZE = 8192                                                                  
    Inherited from FTP
int debugging = 0                                                                     
NoneType file = None                                                                  
str host = ''
int passiveserver = 1                                                                     
int port = 21                                                                    
NoneType sock = None                                                                  
NoneType welcome = None                                                                  

Method Details

storbinary(self, cmd, fp, blocksize=8192, callback=<function noop at 0xb59afe9c>)

Store a file in binary mode.
Overrides:
ftplib.FTP.storbinary

Class Variable Details

DEF_BLOCKSIZE

Type:
int
Value:
8192                                                                  

Generated by Epydoc 2.1 on Fri Jun 24 12:01:19 2005 http://epydoc.sf.net