def folder_path_cleaning(folder):
    """
    Modifies string file names from Windows format to Unix format if necessary
    and makes sure there is a ``/`` at the end.

    Parameters
    ----------
    folder : string
        The folder path

    Returns
    -------
    folder_path : str
        The folder path
    """

    folder_path = folder.replace('\\', '/')
    if folder_path[-1] != '/':
        folder_path += '/'
    return folder_path