def extensions_list(fp, comp_ext_list=['gz', 'tgz', 'zip', 'xz', 'bz2'], **
    kwargs):
    """
    Return The extension of a file in lower-case. If archived file ("gz", "tgz", "zip", "xz", "bz2")
    the method will output the base extension + the archive extension as a list
    """
    split_name = fp.split('/')[-1].split('.')
    if len(split_name) == 1:
        return []
    elif len(split_name) > 2 and split_name[-1].lower() in comp_ext_list:
        return [split_name[-2].lower(), split_name[-1].lower()]
    else:
        return [split_name[-1].lower()]
