Methods
|
|
|
|
__init__
|
__init__ (
self,
server,
conn,
addr,
)
|
|
cdup
|
cdup ( self, line )
|
|
check_command_authorization
|
check_command_authorization ( self, command )
|
|
close
|
close ( self )
|
|
cmd_abor
|
cmd_abor ( self, line )
abort operation
|
|
cmd_appe
|
cmd_appe ( self, line )
append to a file
|
|
cmd_cdup
|
cmd_cdup ( self, line )
change to parent of current working directory
|
|
cmd_cwd
|
cmd_cwd ( self, line )
change working directory
|
|
cmd_dele
|
cmd_dele ( self, line )
|
|
cmd_help
|
cmd_help ( self, line )
give help information
|
|
cmd_list
|
cmd_list ( self, line )
give list files in a directory
|
|
cmd_mdtm
|
cmd_mdtm ( self, line )
show last modification time of file
modification time
example output:
213 19960301204320
|
|
cmd_mkd
|
cmd_mkd ( self, line )
|
|
cmd_mode
|
cmd_mode ( self, line )
obsolete - set file transfer mode
|
|
cmd_nlst
|
cmd_nlst ( self, line )
give name list of files in directory
|
|
cmd_noop
|
cmd_noop ( self, line )
do nothing
|
|
cmd_pass
|
cmd_pass ( self, line )
specify password
|
|
cmd_pasv
|
cmd_pasv ( self, line )
prepare for server-to-server transfer
|
|
cmd_port
|
cmd_port ( self, line )
specify data connection port
|
|
cmd_pwd
|
cmd_pwd ( self, line )
print the current working directory
|
|
cmd_quit
|
cmd_quit ( self, line )
terminate session
|
|
cmd_rest
|
cmd_rest ( self, line )
restart incomplete transfer
|
|
cmd_retr
|
cmd_retr ( self, line )
retrieve a file
|
|
cmd_rmd
|
cmd_rmd ( self, line )
|
|
cmd_size
|
cmd_size ( self, line )
return size of file
|
|
cmd_stor
|
cmd_stor (
self,
line,
mode='wb',
)
store a file
|
|
cmd_stru
|
cmd_stru ( self, line )
obsolete - set file transfer structure
|
|
cmd_syst
|
cmd_syst ( self, line )
show operating system type of server system
|
|
cmd_type
|
cmd_type ( self, line )
specify data transfer type
|
|
cmd_user
|
cmd_user ( self, line )
specify user name
|
|
collect_incoming_data
|
collect_incoming_data ( self, data )
|
|
command_not_authorized
|
command_not_authorized ( self, command )
|
|
command_not_understood
|
command_not_understood ( self, command )
|
|
cwd
|
cwd ( self, line )
|
|
found_terminator
|
found_terminator ( self )
|
|
get_dir_list
|
get_dir_list (
self,
line,
long=0,
)
|
|
handle_expt
|
handle_expt ( self )
|
|
listdir
|
listdir (
self,
path,
long=0,
)
returns a producer
|
|
log
|
log ( self, message )
|
|
make_recv_channel
|
make_recv_channel ( self, fd )
pretty much the same as xmit, but only right on the verge of
being worth a merge.
|
|
make_xmit_channel
|
make_xmit_channel ( self )
|
|
new_passive_acceptor
|
new_passive_acceptor ( self )
|
|
open
|
open (
self,
path,
mode,
)
|
|
respond
|
respond ( self, resp )
|