Part of twisted.protocols.ftp View Source View In Hierarchy
Known subclasses: twisted.protocols.ftp.FTPShell
Implements interfaces: twisted.protocols.ftp.IFTPShell
| Instance Variables | filesystemRoot | The path which is considered the root of this shell. (type: twisted.python.filepath.FilePath ) |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 1418 | Method | __init__ | Undocumented |
| 1421 | Method | _path | Undocumented |
| 1424 | Method | makeDirectory | Create a directory. |
| 1427 | Method | removeDirectory | Remove a directory. |
| 1430 | Method | removeFile | Remove a file. |
| 1433 | Method | rename | Rename a file or directory. |
| 1436 | Method | receive | Undocumented |
| 1440 | Method | openForReading | |
| 1451 | Method | access | Determine whether access to the given path is allowed. |
| 1463 | Method | stat | Retrieve information about the given path. |
| 1470 | Method | list | Retrieve information about the given path. |
| 1502 | Method | _list_owner | Undocumented |
| 1510 | Method | _list_group | Undocumented |
| 1518 | Method | _list_directory | Undocumented |
| Parameters | path | The path, as a list of segments, to create
(type: list of unicode
) |
| Returns | A Deferred which fires when the directory has been created, or which fails if the directory cannot be created. | |
| Parameters | path | The path, as a list of segments, to remove
(type: list of unicode
) |
| Returns | A Deferred which fires when the directory has been removed, or which fails if the directory cannot be removed. | |
| Parameters | path | The path, as a list of segments, to remove
(type: list of unicode
) |
| Returns | A Deferred which fires when the file has been removed, or which fails if the file cannot be removed. | |
| Parameters | fromPath | The current name of the path.
(type: list of unicode
) |
| toPath | The desired new name of the path.
(type: list of unicode
) | |
| Returns | A Deferred which fires when the path has been renamed, or which fails if the path cannot be renamed. | |
| Parameters | path | The path, as a list of segments, to open
(type: list of unicode
) |
| Returns | (type: Deferred which will fire with IReadFile
) | |
| Parameters | path | The path, as a list of segments |
| Returns | A Deferred which fires with None if access is allowed or which fails with a specific exception type if access is denied. | |
Retrieve information about the given path.
This is like list, except it will never return results about child paths.Retrieve information about the given path.
If the path represents a non-directory, the result list should have only one entry with information about that non-directory. Otherwise, the result list should have an element for each child of the directory.| Parameters | path | The path, as a list of segments, to list
(type: list of unicode
) |
| keys | A tuple of keys desired in the resulting dictionaries. | |
| Returns | A Deferred which fires with a list of (name, list), where the name is
the name of the entry as a unicode string and each list contains values
corresponding to the requested keys. The following are possible elements
of keys, and the values which should be returned for them:
| |