def gen_folder(posix_path_folder):
    """Yield immediate subdirectories inside a folder."""
    for posix_path in posix_path_folder.iterdir():
        if posix_path.is_dir():
            yield posix_path
