from pathlib import Path


def _get_all_migrations_from_folder(migration_folder):
    """Simply checks folder for files which ends with up.sql

    :param migration_folder: Path to migration folder
    :type migration_folder: string
    :returns: Path object globbed for a string *.up.sql
    :rtype: pathlib.Path
    """

    return Path(migration_folder).glob("*.up.sql")