Class t.v.a.f.FileSystemToIFTPShellAdaptor:

Part of twisted.vfs.adapters.ftp View Source View In Hierarchy

Implements interfaces: twisted.protocols.ftp.IFTPShell
No class docstring
Method __init__ Undocumented
Method _makePath Undocumented
Method makeDirectory Create a directory.
Method removeDirectory Remove a directory.
Method removeFile Remove a file.
Method list Retrieve information about the given path.
Method _attrify Undocumented
Method access Determine whether access to the given path is allowed.
Method openForReading
Method openForWriting
Method stat Retrieve information about the given path.
Method rename Rename a file or directory.
def __init__(self, filesystem): (source)
Undocumented
def _makePath(segments): (source)
Undocumented
def makeDirectory(self, path): (source)
Create a directory.
ParameterspathThe path, as a list of segments, to create (type: list of unicode )
ReturnsA Deferred which fires when the directory has been created, or which fails if the directory cannot be created.
def removeDirectory(self, path): (source)
Remove a directory.
ParameterspathThe path, as a list of segments, to remove (type: list of unicode )
ReturnsA Deferred which fires when the directory has been removed, or which fails if the directory cannot be removed.
def removeFile(self, path): (source)
Remove a file.
ParameterspathThe path, as a list of segments, to remove (type: list of unicode )
ReturnsA Deferred which fires when the file has been removed, or which fails if the file cannot be removed.
def list(self, path, keys=()): (source)

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.
ParameterspathThe path, as a list of segments, to list (type: list of unicode )
keysA tuple of keys desired in the resulting dictionaries.
ReturnsA 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:
  • 'size': size in bytes, as an integer (this is kinda required)
  • 'directory': boolean indicating the type of this entry
  • 'permissions': a bitvector (see os.stat(foo).st_mode)
  • 'hardlinks': Number of hard links to this entry
  • 'modified': number of seconds since the epoch since entry was modified
  • 'owner': string indicating the user owner of this entry
  • 'group': string indicating the group owner of this entry
def _attrify(self, node): (source)
Undocumented
def access(self, path): (source)
Determine whether access to the given path is allowed.
ParameterspathThe path, as a list of segments
ReturnsA Deferred which fires with None if access is allowed or which fails with a specific exception type if access is denied.
def openForReading(self, segs): (source)
ParameterspathThe path, as a list of segments, to open (type: list of unicode )
Returns(type: Deferred which will fire with IReadFile )
def openForWriting(self, segs): (source)
ParameterspathThe path, as a list of segments, to open (type: list of unicode )
Returns(type: Deferred which will fire with IWriteFile )
def stat(self, path, keys=()): (source)

Retrieve information about the given path.

This is like list, except it will never return results about child paths.
def rename(self, from_, to): (source)
Rename a file or directory.
ParametersfromPathThe current name of the path. (type: list of unicode )
toPathThe desired new name of the path. (type: list of unicode )
ReturnsA Deferred which fires when the path has been renamed, or which fails if the path cannot be renamed.
API Documentation for twisted, generated by pydoctor.