Home | Trees | Index | Help |
---|
Package paramiko :: Class SFTPServer |
|
object
--+ |_Verbose
--+ |Thread
--+ |SubsystemHandler
--+ |object
--+ | | |BaseSFTP
--+ | SFTPServer
SubsystemHandler
, it can be (and is meant
to be) set as the handler for "sftp"
requests. Use
Transport.set_subsystem_handler
to activate
this class.
Method Summary | |
---|---|
The constructor for SFTPServer is meant to be called from within the Transport as a subsystem handler. | |
int |
Convert an errno value (as from an OSError or
IOError ) into a standard SFTP result code. (Static method)
|
Perform any cleanup at the end of a subsystem. | |
Change a file's attributes on the local filesystem. (Static method) | |
Process an ssh subsystem in server mode. | |
Inherited from SubsystemHandler | |
ServerInterface
|
Return the ServerInterface object associated with this
channel and subsystem. |
Inherited from Thread | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Instance Method Details |
---|
__init__(self,
channel,
name,
server,
sftp_si=<class 'paramiko.SFTPServerInterface'>,
*largs,
**kwargs)
The constructor for SFTPServer is meant to be called from within the
|
finish_subsystem(self)Perform any cleanup at the end of a subsystem. The default implementation just closes the channel.
|
start_subsystem(self, name, transport, channel)Process an ssh subsystem in server mode. This method is called on a new object (and in a new thread) for each subsystem request. It is assumed that all subsystem logic will take place here, and when the subsystem is finished, this method will return. After this method returns, the channel is closed. The combination oftransport and channel
are unique; this handler corresponds to exactly one Channel on one Transport .
|
Static Method Details |
---|
convert_errno(e)Convert an errno value (as from anOSError or
IOError ) into a standard SFTP result code. This is a
convenience function for trapping exceptions in server code and
returning an appropriate result.
|
set_file_attr(filename, attr)Change a file's attributes on the local filesystem. The contents of
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | http://epydoc.sf.net |