Part of twisted.vfs.ivfs View Source View In Hierarchy
Known implementations: twisted.vfs.backends.inmem.FakeFile, twisted.vfs.backends.osfs.OSFile
Method | open | Opens the file with flags. Flags should be a bitmask based on the os.O_* flags. |
Method | close | Closes this node. |
Method | readChunk | Leaf should have been previously opened with suitable flags. Reads length bytes or until the end of file from this leaf from the given offset. |
Method | writeChunk | Leaf should have been previously opened with suitable flags. Writes data to leaf from the given offset. |
Inherited from IFileSystemNode:
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. |