l.c.s.TransportSFTPFile : class documentation

Part of lp.codehosting.sftp View In Hierarchy

An implementation of ISFTPFile that backs onto a Bazaar transport.

The transport must be a Twisted Transport.

Method __init__ Undocumented
Method writeChunk See ISFTPFile.
Method readChunk See ISFTPFile.
Method setAttrs See ISFTPFile.
Method getAttrs See ISFTPFile.
Method close See ISFTPFile.
Method _shouldAppend Is this file opened append?
Method _shouldCreate Should we create a file?
Method _shouldTruncate Should we truncate the file?
Method _shouldWrite Is this file opened writable?
Method _truncateFile Truncate this file.
def __init__(self, transport, name, flags, server):
Undocumented
def _shouldAppend(self):
Is this file opened append?
def _shouldCreate(self):
Should we create a file?
def _shouldTruncate(self):
Should we truncate the file?
def _shouldWrite(self):
Is this file opened writable?
def _truncateFile(self):
Truncate this file.
@with_sftp_error
def writeChunk(self, offset, data):
See ISFTPFile.
@with_sftp_error
def readChunk(self, offset, length):
See ISFTPFile.
def setAttrs(self, attrs):
See ISFTPFile.

The Transport interface does not allow setting any attributes.

@with_sftp_error
def getAttrs(self):
See ISFTPFile.
def close(self):
See ISFTPFile.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.