Class t.v.b.o.OSNode:

Part of twisted.vfs.backends.osfs View Source View In Hierarchy

Known subclasses: twisted.vfs.backends.osfs.OSDirectory, twisted.vfs.backends.osfs.OSFile

Implements interfaces: twisted.vfs.ivfs.IFileSystemNode
No class docstring
Method __init__ Undocumented
Method getMetadata returns a map of arbitrary metadata. As an example, here's what SFTP
Method setMetadata Undocumented
Method rename Renames this node to newName. newName can be in a different
Method remove Removes this node.
def __init__(self, realPath, name=None, parent=None): (source)
Undocumented
def getMetadata(self): (source)
returns 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 setMetadata(self, attrs): (source)
Undocumented
def rename(self, 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.
def remove(self): (source)
Removes this node. An error is raised if the node is a directory and is not empty.
API Documentation for twisted, generated by pydoctor.