class documentation

Undocumented

Method extendedRequest This is the extension mechanism for SFTP. The other side can send us arbitrary requests.
Method gotVersion Called when the client sends their version info.

Inherited from SFTPServerForUnixConchUser:

Method __init__ Undocumented
Method getAttrs Return the attributes for the given path.
Method makeDirectory Make a directory.
Method makeLink Create a symbolic link.
Method openDirectory Open a directory for scanning.
Method openFile Called when the clients asks to open a file.
Method readLink Find the root of a set of symbolic links.
Method realPath Convert any path to an absolute path.
Method removeDirectory Remove a directory (non-recursively)
Method removeFile Remove the given file.
Method renameFile Rename the given file.
Method setAttrs Set the attributes for the path.
Instance Variable avatar The avatar returned by the Realm that we are authenticated with, and represents the logged-in user.
Method _absPath Undocumented
Method _getAttrs Undocumented
Method _setAttrs NOTE: this function assumes it runs as the logged-in user: i.e. under _runAsUser()
def extendedRequest(self, extName, extData):

This is the extension mechanism for SFTP. The other side can send us arbitrary requests.

If we don't implement the request given by extendedName, raise NotImplementedError.

The return value is a string, or a Deferred that will be called back with a string.

Parameters
extNameUndocumented
extDataUndocumented
extendedNamethe name of the request as a string.
extendedDatathe data the other side sent with the request, as a string.
def gotVersion(self, version, otherExt):

Called when the client sends their version info.

otherVersion is an integer representing the version of the SFTP protocol they are claiming. extData is a dictionary of extended_name : extended_data items. These items are sent by the client to indicate additional features.

This method should return a dictionary of extended_name : extended_data items. These items are the additional features (if any) supported by the server.