module documentation
Undocumented
Function | from |
Return a Traversable object for the given package. |
Function | get |
Return the package's loader if it's a ResourceReader. |
Function | package |
Replace 'package' parameter as 'anchor' and warn about the change. |
Function | resolve |
Undocumented |
Function | _ |
Degenerate behavior for pathlib.Path objects. |
Function | _infer |
Walk the stack and find the frame of the first caller not in this module. |
Function | _is |
Some Traversables implement ``is_dir()`` to raise an exception (i.e. ``FileNotFoundError``) when the directory doesn't exist. This function wraps that call to always return a boolean and only return True if there's a dir and it exists. |
Function | _temp |
Given a traversable dir, recursively replicate the whole tree to the file system in a context manager. |
Function | _temp |
Undocumented |
Function | _temp |
Wrap tempfile.TemporyDirectory to return a pathlib object. |
Function | _tempfile |
Undocumented |
Function | _write |
Undocumented |
Replace 'package' parameter as 'anchor' and warn about the change. Other errors should fall through. >>> files('a', 'b') Traceback (most recent call last): TypeError: files() takes from 0 to 1 positional arguments but 2 were given
Some Traversables implement ``is_dir()`` to raise an exception (i.e. ``FileNotFoundError``) when the directory doesn't exist. This function wraps that call to always return a boolean and only return True if there's a dir and it exists.
Given a traversable dir, recursively replicate the whole tree to the file system in a context manager.