def _path_list_creator(path, file_prefix_name, number_of_digits_zfill, file_suffix_name):
    """Creates a list of paths where the files have a predefined prefix,
        an incremental number and a predefined suffix on their name,
        respectively. Eg.: img01.zdf

    Args:
        path: a path that leads to the files directory
        file_prefix_name: a string that comes before the number
        number_of_digits_zfill: a number of digits in the number
        file_suffix_name: a string that comes after the number

    Returns:
        list_of_paths: list of appended paths

    """
    num = 1
    list_of_paths = []

    while True:
        file_path = path / f"{file_prefix_name}{str(num).zfill(number_of_digits_zfill)}{file_suffix_name}"
        list_of_paths.append(file_path)

        next_file_path = path / f"{file_prefix_name}{str(num+1).zfill(number_of_digits_zfill)}{file_suffix_name}"

        if not next_file_path.exists():
            return list_of_paths

        num = num + 1