def save_index(config_file: Path, index: int):
    if (index == 0):
        if config_file.exists():
            config_file.unlink()
    else:
        config_file.write_text(f'''{(index + 1)}
''')
def save_index(config_file: Path, index: int):
    if (index == 0):
        if config_file.exists():
            config_file.unlink()
    else:
        config_file.write_text(f'{(index + 1)}
')