class FileTransferForTestAvatar(SFTPServerForUnixConchUser):
Constructor: FileTransferForTestAvatar(avatar)
Undocumented
Method | extended |
This is the extension mechanism for SFTP. The other side can send us arbitrary requests. |
Method | got |
Called when the client sends their version info. |
Inherited from SFTPServerForUnixConchUser
:
Method | __init__ |
Undocumented |
Method | get |
Return the attributes for the given path. |
Method | make |
Make a directory. |
Method | make |
Create a symbolic link. |
Method | open |
Open a directory for scanning. |
Method | open |
Called when the clients asks to open a file. |
Method | read |
Find the root of a set of symbolic links. |
Method | real |
Convert any path to an absolute path. |
Method | remove |
Remove a directory (non-recursively) |
Method | remove |
Remove the given file. |
Method | rename |
Rename the given file. |
Method | set |
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 | _abs |
Undocumented |
Method | _get |
Undocumented |
Method | _set |
NOTE: this function assumes it runs as the logged-in user: i.e. under _runAsUser() |
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 | |
ext | Undocumented |
ext | Undocumented |
extended | the name of the request as a string. |
extended | the data the other side sent with the request, as a string. |
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.