| Home | Trees | Index | Help |
|---|
| Package paramiko :: Module sftp_file :: Class SFTPFile |
|
object--+ |BufferedFile--+ | SFTPFile
| Method Summary | |
|---|---|
__init__(self,
sftp,
handle,
mode,
bufsize)
| |
Close the file. | |
| float |
Returns the timeout in seconds (as a float) associated with the socket or ssh Channel used for this file. |
Set the file's current position, like stdio's fseek. | |
Set blocking or non-blocking mode on the underiying socket or ssh Channel. | |
Set a timeout on read/write operations on the underlying socket or ssh Channel. | |
| SFTPAttributes |
Retrieve information about this file from the remote system. |
| Inherited from BufferedFile | |
| iterator |
Returns an iterator that can be used to iterate over the lines in this file. |
Write out any data in the write buffer. | |
| str |
Returns the next line from the input, or raises StopIteration when EOF is hit. |
| str |
Read at most size bytes from the file (less if we hit the
end of the file first). |
| str |
Read one entire line from the file. |
| list |
Read all remaining lines using readline and return them as a list. |
| int |
Return the file's current position. |
Write data to the file. | |
Write a sequence of strings to the file. | |
| iterator |
Identical to iter(f). |
| 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) | |
| Class Variable Summary | |
|---|---|
int |
MAX_REQUEST_SIZE = 32768 |
| Inherited from BufferedFile | |
int |
SEEK_CUR = 1 |
int |
SEEK_END = 2 |
int |
SEEK_SET = 0 |
| Method Details |
|---|
close(self)Close the file. Future read and write operations will fail.
|
gettimeout(self)Returns the timeout in seconds (as a float) associated with the socket or sshChannel used for this file.
|
seek(self, offset, whence=0)Set the file's current position, like stdio'sfseek.
Not all file objects support seeking.
|
setblocking(self, blocking)Set blocking or non-blocking mode on the underiying socket or sshChannel.
|
settimeout(self, timeout)Set a timeout on read/write operations on the underlying socket or sshChannel.
|
stat(self)Retrieve information about this file from the remote system. This is exactly likeSFTP.stat, except that it operates on an
already-open file.
|
| Class Variable Details |
|---|
MAX_REQUEST_SIZE
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Oct 23 00:28:17 2004 | http://epydoc.sf.net |