def IsFPExt(path, extentions):
    """ Returns whether the file in the filepath is in the extension/type list given.
    :param path str: file path
    :param extentions list: extension/type list
    :returns boolean:
    """
    is_ext = False
    for ext in extentions:
        if path.endswith(ext):
            is_ext = True
    return is_ext