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 |
|---|---|---|---|
| 1521 | Method | __init__ | Undocumented |
| 1529 | Method | makeDirectory | Create a directory. |
| 1533 | Method | removeDirectory | Remove a directory. |
| 1537 | Method | removeFile | Remove a file. |
| 1541 | Method | rename | Rename a file or directory. |
| 1545 | Method | receive | Undocumented |
| 1550 | Method | openForReading | |
| 1566 | Method | openForWriting | Reject write attempts by anonymous users with |
| 1574 | Method | access | Determine whether access to the given path is allowed. |
| 1591 | Method | stat | Retrieve information about the given path. |
| 1606 | Method | list | Return the list of files at given path, adding
keys stat
|
| 1525 | Method | _path | Undocumented |
| 1642 | Method | _statNode | Shortcut method to get stat info on a node. |
| 1661 | Method | _stat_owner | Undocumented |
| 1670 | Method | _stat_group | Undocumented |
| 1679 | Method | _stat_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
) | |
PermissionDeniedError.
| 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.path, adding
keys stat informations if specified.
| Parameters | path | the directory or file to check.
(type: str
) |
| keys | the list of desired metadata
(type: list of str
) |
| Parameters | filePath | the node to stat.
(type: filepath.FilePath
) |
| keys | the stat keys to get.
(type: iterable
) |