def is_selectable(filename, selecttype):

    file_extension = os.path.splitext(filename)[1].lower()
    select_types = []
    for k, v in SELECT_FORMATS.items():
        for extension in v:
            if file_extension == extension.lower():
                select_types.append(k)
    return select_types
Get select type as defined in FORMATS.
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/is_selectable