''

def get_mime(self, path, isdir):

    if isdir:
        file_type = FOLDER
    else:
        file_type = mimetypes.guess_type(path)[0]
        if (not file_type):
            file_type = UNKNOWN
    return file_type
