def get_mime(self, path, isdir):
if isdir:<EOL><INDENT>file_type = FOLDER<EOL><DEDENT>else:<EOL><INDENT>file_type = mimetypes.guess_type(path)[<NUM_LIT:0>]<EOL>if not file_type:<EOL><INDENT>file_type = UNKNOWN<EOL><DEDENT><DEDENT>return file_type<EOL>
猜测文件类型, 根据它的文件扩展名