in terranova/commands/helpers.py [0:0]
def find_all_resource_dirs(resources_dir: Path) -> list[tuple[Path, str]]:
"""
Find all path where there is a resource manifest.
Returns:
list of all path.
"""
paths: list[tuple[Path, str]] = []
resources_dir_path = SharedContext.resources_dir().as_posix()
resources_dir_prefix_len = len(resources_dir_path) + 1
for path, _, files in os.walk(resources_dir):
for file in files:
if os.path.basename(file) == Constants.MANIFEST_FILE_NAME:
paths.append((Path(path), path[resources_dir_prefix_len:]))
return paths