from pathlib import Path


def get_rotating_data_path(data_folder_path):
    """Get next available path for data folder"""
    data_counter = 0
    while Path(data_folder_path).joinpath(f"data{data_counter}").exists():
        data_counter += 1
    return Path(data_folder_path).joinpath(f"data{data_counter}")