def list_files_recursive(base_path: Path):
    """
    Args: str or Path
    Returns [path, ...]
    """
    all_paths = []
    children = listdir(base_path)
    for child, is_dir in children:
        if is_dir:
            all_paths.extend(list_files_recursive(child))
        else:
            all_paths.append(child)
    return all_paths

    Args: str or Path
    Returns [path, ...]
    
infinigen/datagen/util/smb_client.py