Part of lp.codehosting.sftp View In Hierarchy
ISFTPServer
that backs onto a Bazaar transport.
The transport must be a Twisted Transport.
Method | __init__ | Undocumented |
Method | extendedRequest | See ISFTPServer . |
Method | makeLink | See ISFTPServer . |
Method | openDirectory | See ISFTPServer . |
Method | openFile | See ISFTPServer . |
Method | readLink | See ISFTPServer . |
Method | realPath | See ISFTPServer . |
Method | setAttrs | See ISFTPServer . |
Method | getAttrs | See ISFTPServer . |
Method | gotVersion | See ISFTPServer . |
Method | makeDirectory | See ISFTPServer . |
Method | removeDirectory | See ISFTPServer . |
Method | removeFile | See ISFTPServer . |
Method | renameFile | See ISFTPServer . |
Static Method | translateError | Translate Bazaar errors to filetransfer.SFTPError instances. |
Method | _stat_files_in_list | Stat the a list of files. |
Method | _format_directory_entries | Produce entries suitable for returning from openDirectory . |
Method | _translate_stat | Translate the stat result stat_val into an attributes dict. |
Parameters | file_list | The list of escaped file names. |
escaped_dir_path | The escaped path of the directory containing the files. | |
Returns | A Deferred which will be called back with the list of all the stat results. |
openDirectory
.Parameters | stat_results | A list of the results of calling stat on each
file in filenames. |
filenames | The list of filenames to produce entries for. | |
Returns | An iterator of (shortname, longname, attributes). |
ISFTPServer
.
This just delegates to TransportSFTPFile's implementation.
stat_val
into an attributes dict.
This is very like conch.ssh.unix.SFTPServerForUnixConchUser._getAttrs, but (a) that is private and (b) we use getattr() to access the attributes as not all the Bazaar transports return full stat results.