Home | Trees | Indices | Help |
---|
|
object --+ | SFTPHandle
Abstract object representing a handle to an open file (or folder) in an SFTP server implementation. Each handle has a string representation used by the client to refer to the underlying file.
Server implementations can (and should) subclass SFTPHandle to implement features of a file handle, like stat or chattr.
Instance Methods | |||
|
|||
int |
|
||
|
|||
str |
|
||
SFTPAttributes or error code |
|
||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
Create a new file handle representing a local file being served over
SFTP. If
|
Change the attributes of this file. The
|
When a client closes a file, this method is called on the handle. Normally you would use this method to close the underlying OS level file object(s). The default implementation checks for attributes on |
Read up to If the end of the file has been reached, this method may return an empty string to signify EOF, or it may also return SFTP_EOF. The default implementation checks for an attribute on
|
Return an SFTPAttributes object referring to this open file, or an error code. This is equivalent to SFTPServerInterface.stat, except it's called on an open file instead of a path.
|
Write The default implementation checks for an attribute on
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Nov 1 22:14:17 2009 | http://epydoc.sourceforge.net |