l.c.sftp : module documentation

Part of lp.codehosting

An SFTP server that backs on to a special kind of Bazaar Transport.

The Bazaar Transport is special in two ways:

  1. It implements two methods writeChunk and local_realPath (see the FatLocalTransport class for a description of these)
  2. Every transport method returns Deferreds and does not block.

We call such a transport a "Twisted Transport".

Class FatLocalTransport A Bazaar transport that also implements writeChunk and local_realPath.
Function with_sftp_error Decorator used to translate Bazaar errors into SFTP errors.
Class DirectoryListing Class to satisfy openDirectory return interface.
Class TransportSFTPFile An implementation of ISFTPFile that backs onto a Bazaar transport.
Function avatar_to_sftp_server Undocumented
Class TransportSFTPServer An implementation of ISFTPServer that backs onto a Bazaar transport.
Function _get_transport_for_dir Undocumented
def with_sftp_error(func):
Decorator used to translate Bazaar errors into SFTP errors.

This assumes that the function being decorated returns a Deferred.

See TransportSFTPServer.translateError for the details of the translation.

def _get_transport_for_dir(directory):
Undocumented
def avatar_to_sftp_server(avatar):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-10-16 00:00:09.