from pathlib import Path


def filename(filepath):
    """Returns the filename at the end of filepath.

    Args:
        filepath (str): A path to a file

    Returns:
        str: The filename
    """
    return Path(filepath).name