Home | Trees | Index | Help |
---|
Package paramiko :: Module sftp_handle :: Class SFTPHandle |
|
object
--+
|
SFTPHandle
Method Summary | |
---|---|
__init__(self)
| |
int |
Change the attributes of this file. |
When a client closes a file, this method is called on the handle. | |
str |
Read up to length bytes from this file, starting at
position offset . |
SFTPAttributes or error
code
|
Return an SFTPAttributes object referring to this
open file, or an error code. |
Write data into this file at position
offset . | |
_get_name(self)
| |
Used by the SFTP server code to retreive a cached directory listing. | |
Used by the SFTP server code to cache a directory listing. | |
_set_name(self,
name)
| |
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.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
chattr(self, attr)Change the attributes of this file. Theattr object
will contain only those fields provided by the client in its request,
so you should check for the presence of fields before using them.
|
close(self)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). |
read(self, offset, length)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 self named readfile , and if present, performs
the read operation on the python file-like object found there. (This is
meant as a time saver for the common case where you are wrapping a
python file object.)
|
stat(self)Return anSFTPAttributes 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(self, offset, data)Write self named writefile , and if present,
performs the write operation on the python file-like object found
there. The attribute is named differently from readfile to
make it easy to implement read-only (or write-only) files, but if both
attributes are present, they should refer to the same file.
|
_get_next_files(self)Used by the SFTP server code to retreive a cached directory listing. |
_set_files(self, files)Used by the SFTP server code to cache a directory listing. (In the SFTP protocol, listing a directory is a multi-stage process requiring a temporary handle.) |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 12 02:04:26 2004 | http://epydoc.sf.net |