def get_file_type(filename):

    file_extension = os.path.splitext(filename)[1].lower()
    file_type = ''
    for k, v in EXTENSIONS.items():
        for extension in v:
            if file_extension == extension.lower():
                file_type = k
    return file_type
Parse content and metadata of markdown files
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/get_file_type--crossover with--dataset/ETHPy150Open gkmngrgn/radpress/radpress/readers/markdown_reader.py/Reader.read