pub fn composite_exercise() -> Result<(), String>
Expand description
Example of using the “Composite” pattern.
The Composite pattern is used when a collection of objects is to be formed in a hierarchical form where each object needs to be treated like any other object but some objects can contain other objects.
This example uses a file structure of file and directories to represent each object type.