from pathlib import Path


def get_file_name(file_path: str) -> str:
    """
    Returns the name of a file from a file path.
    :param file_path: file path
    :return: name of file
    """
    p = Path(file_path)
    return str(p.name)