def url_file_name(url: str) -> str:
    """
    Extract file name from url (last part of the url).
    :param url: URL to extract file name from.
    :return: File name.
    """
    return url.split('/')[-1] if len(url) > 0 else ''