b.t.treeshape : module documentation

Part of bzrlib.tests

Test helper for constructing and testing directories.

This module transforms filesystem directories to and from Python lists. As a Python list the descriptions can be stored in test cases, compared, etc.

Function build_tree_contents Reconstitute some files from a text description.
Function capture_tree_contents Make a Python datastructure description of a tree.
def build_tree_contents(template):
Reconstitute some files from a text description.

Each element of template is a tuple. The first element is a filename, with an optional ending character indicating the type.

The template is built relative to the Python process's current working directory.

('foo/',) will build a directory. ('foo', 'bar') will write 'bar' to 'foo' ('foo@', 'linktarget') will raise an error

def capture_tree_contents(top):
Make a Python datastructure description of a tree.

If top is an absolute path the descriptions will be absolute.

API Documentation for Bazaar, generated by pydoctor at 2019-03-25 00:17:06.