pyre.filesystem.Local

Module Contents

class pyre.filesystem.Local.Local(walker, recognizer, **kwds)

Bases: pyre.filesystem.Filesystem.Filesystem

An encapsulation of a filesystem mounted directly on the local host machine

walker
recognizer
checksum(self, node, **kwds)

Compute a checksum for the node

open(self, node, **kwds)

Open the file associated with {node}

mkdir(self, name, parent=None, **kwds)

Create a subdirectory {name} in {parent}

touch(self, name, parent=None, **kwds)

Create a file {name} in directory {parent}

write(self, name, contents, parent=None, mode='w')

Create the file {name} in the folder {parent} with the given {contents}

make(self, name, tree, root=None, **kwds)

Duplicate the hierarchical structure in {tree} within my context

Remove {node} and its associated file from this filesystem

discover(self, root=None, walker=None, recognizer=None, levels=None, **kwds)

Traverse the local filesystem starting with {root} and refresh my contents so that they match the underlying filesystem