>>> from plant import Node >>> >>> unit_test_file = Node("tests/unit/test_base.py") >>> unit_test_file.dir Node('tests/unit') >>> unit_test_file.dir.dir Node('tests/unit') >>> unit_test_file.dir.dir.dir Node('tests/unit')