Part of bzrlib.tests
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.|
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