Tree

This class is still under development although it is working.

class odin.source.core.tree.Tree(parent, name)

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

Return type

None

create_from_template(template_path, path)

Create a tree object with a yaml template file.

Parameters
  • template_path (str) – path of the yaml template

  • path (str) – root path for the new tree

Return type

Tree

Returns

Tree object that contain the folders to create the tree

create_on_disk()

Create tree on disk.

Return type

None