def get_extension(t_path):
    """ Get extension of the file
    :param t_path: path or name of the file
    :return: string with extension of the file or empty string if we failed
     to get it
    """

    path_parts = str.split(t_path, '.')
    extension = path_parts[-1:][0]
    extension = extension.lower()
    return extension