pyre.filesystem¶
Submodules¶
pyre.filesystem.BlockDevicepyre.filesystem.CharacterDevicepyre.filesystem.Directorypyre.filesystem.Explorerpyre.filesystem.Filepyre.filesystem.Filesystempyre.filesystem.Finderpyre.filesystem.Folderpyre.filesystem.HDF5pyre.filesystem.Infopyre.filesystem.InfoFilepyre.filesystem.InfoFolderpyre.filesystem.InfoStatpyre.filesystem.InfoZippyre.filesystem.InfoZipFilepyre.filesystem.InfoZipFolderpyre.filesystem.Linkpyre.filesystem.Localpyre.filesystem.Nakedpyre.filesystem.NamedPipepyre.filesystem.Nodepyre.filesystem.Recognizerpyre.filesystem.SimpleExplorerpyre.filesystem.Socketpyre.filesystem.Statpyre.filesystem.TreeExplorerpyre.filesystem.Walkerpyre.filesystem.Zippyre.filesystem.exceptions
Package Contents¶
-
pyre.filesystem.virtual(**kwds)¶ Build a virtual filesystem
-
pyre.filesystem.local(root, listdir=None, recognizer=None, **kwds)¶ Build a local filesystem, i.e. one that encapsulates the contents of a filesystem that is mounted on the machine that hosts this process.
- parameters:
- {root}: the directory to use as the root of the new filesystem {listdir}: the mechanism that lists the contents of directories {recognizer}: the mechanism that identifies the types of files
-
pyre.filesystem.zip(root, **kwds)¶ Attempt to build a zip filesystem out of {root}, which is expected to be a zip archive
-
pyre.filesystem.naked(**kwds)¶ Build a naked node, i.e. a node that is a trivial wrapper around a file in the local filesystem. Useful for quick and dirty mounting of specific files without having to build a local filesystem out of the folder that contains them
-
pyre.filesystem.finder(**kwds)¶ Build an explorer that traverses the contents of filesystems and returns ({node}, {name}) pairs that match an optional {pattern}
-
pyre.filesystem.treeExplorer(**kwds)¶ Build an explorer that creates a report of filesystem contents formatted like a tree
-
pyre.filesystem.simpleExplorer(**kwds)¶ Build an explorer that creates a simple report of filesystem contents
-
pyre.filesystem.stat()¶ Build a recognizer of the contents of local filesystems based on {os.stat}
-
pyre.filesystem.walker()¶ Build an object that can list the contents of locally mounted folders
-
exception
pyre.filesystem.MountPointError(error, **kwds)¶ Bases:
pyre.filesystem.exceptions.GenericErrorException generated when the root of a filesystem is invalid
-
description= error while mounting '{0.uri}': {0.error}¶
-
-
pyre.filesystem._metaclass_Node¶
-
pyre.filesystem.debug()¶ Support for debugging the filesystem package