t.v.i.IFileSystemNode(Interface) : interface documentation

Part of twisted.vfs.ivfs View Source View In Hierarchy

Known subclasses: twisted.vfs.ivfs.IFileSystemContainer, twisted.vfs.ivfs.IFileSystemLeaf

Known implementations: twisted.vfs.backends.osfs.OSNode

No interface docstring
Attribute parent parent node
Method getMetadata Feturns a map of arbitrary metadata. As an example, here's what SFTP expects (but doesn't require):
Method remove Removes this node. An error is raised if the node is a directory and is not empty.
Method rename Renames this node to newName. newName can be in a different directory. If the destination is an existing directory, an error will be raised.
parent =
parent node
def getMetadata(): (source)
Feturns a map of arbitrary metadata. As an example, here's what SFTP expects (but doesn't require):
  • 'size': size of file in bytes
  • 'uid': owner of the file
  • 'gid': group owner of the file
  • 'permissions': file permissions
  • 'atime': last time the file was accessed
  • 'mtime': last time the file was modified
  • 'nlink': number of links to the file
Protocols that need metadata should handle the case when a particular value isn't available as gracefully as possible.
def remove(): (source)
Removes this node. An error is raised if the node is a directory and is not empty.
def rename(newName): (source)
Renames this node to newName. newName can be in a different directory. If the destination is an existing directory, an error will be raised.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.