Part of twisted.vfs.adapters.sftp View Source View In Hierarchy
Implements interfaces: twisted.conch.interfaces.ISFTPFile
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 219 | Method | __init__ | Undocumented |
| 222 | Method | close | Close the file. |
| 225 | Method | readChunk | Read from the file. |
| 228 | Method | writeChunk | Write to the file. |
| 231 | Method | getAttrs | Return the attributes for the file. |
| 234 | Method | setAttrs | Set the attributes for the file. |
Close the file.
This method returns nothing if the close succeeds immediatly, or a Deferred that is called back when the close succeeds.Read from the file.
offset is an integer that is the index to start from in the file. length is the maximum length of data to return. The actual amount returned may less than this. For normal disk files, however, this should read the requested number (up to the end of the file).
If EOF is reached before any data is read, raise EOFError.
This method returns the data as a string, or a Deferred that is called back with same.Write to the file.
offset is an integer that is the index to start from in the file. data is a string that is the data to write.
This method returns when the write completes, or a Deferred that is called when it completes.Return the attributes for the file.
This method returns a dictionary in the same format as the attrs argument to openFile or a Deferred that is called back with same.