Tree¶
This class is still under development although it is working.
- class odin.source.core.create_tree.Tree(parent: Optional[odin.source.core.create_tree.Tree], name: str)¶
Create an object Tree based on a given template.
- Usage:
t = Tree().create_from_template(‘template/file.yaml’)
t.create_on_disk()
- Parameters
parent (Tree) –
name (str) – folder name given to the root of the tree
- static create_from_template(template_path: str, root_: str) odin.source.core.create_tree.Tree¶
Create a tree object with a yaml template file
- Parameters
template_path (str) – path of the yaml template
root (str) – root for the new tree
- Returns
Tree object that contain the folders to create the tree
- Return type