datalad_next.tests.create_tree
- datalad_next.tests.create_tree(path: str, tree: Tuple[Tuple[str | File, str | bytes | TreeSpec], ...] | List[Tuple[str | File, str | bytes | TreeSpec]] | Dict[str | File, str | bytes | TreeSpec], archives_leading_dir: bool = True, remove_existing: bool = False) None [source]
Given a list of tuples (name, load) create such a tree
if load is a tuple itself -- that would create either a subtree or an archive with that content and place it into the tree if name ends with .tar.gz