Create methods for acquiring paths from hierarchy.
Extract temp dir action to separate class