from pathlib import Path


def directory_with_raw_images(start_path: Path) -> Path:
    """Find the directory nested under path that contains more than 1 filehandle."""
    paths = [p for p in start_path.iterdir()]
    if len(paths) == 1 and paths[0].is_dir():
        # If this is another path with nothing but a single directory, keep going
        return directory_with_raw_images(paths[0])
    else:
        # This directory has more than 1 member, it is our answer
        return start_path