module documentation

Undocumented

Function build Build a set of files/directories, as described by the spec.
Function create Undocumented
Function _ Undocumented
def build(spec, prefix=pathlib.Path()): (source)

Build a set of files/directories, as described by the spec. Each key represents a pathname, and the value represents the content. Content may be a nested directory. >>> spec = { ... 'README.txt': "A README file", ... "foo": { ... "__init__.py": "", ... "bar": { ... "__init__.py": "", ... }, ... "baz.py": "# Some code", ... } ... } >>> tmpdir = getfixture('tmpdir') >>> build(spec, tmpdir)

@functools.singledispatch
def create(content, path): (source)

Undocumented

@create.register
def _(content: str, path): (source)

Undocumented