in terranova/commands/helpers.py [0:0]
def resource_dirs(path: str | None) -> list[tuple[Path, str]]:
"""
List of all resource dirs to interact with.
Args:
path: use a specific path.
Returns:
list of all resource dirs.
"""
resources_dir = SharedContext.resources_dir()
if path:
resources_dir = resources_dir.joinpath(path)
return find_all_resource_dirs(resources_dir)