parameters: (fname)
docstring: Get what the type of the file is
      @param fname: file path
docstring_summary: Get what the type of the file is
      @param fname: file path
docstring_tokens: Get what the type of the file is @param fname : file path
function: def GetFileType(fname):
      """Get what the type of the file is
      @param fname: file path
  
      """
      if os.path.isdir(fname):
          return _("Folder")
  
      mtype = mimetypes.guess_type(fname)[0]
      if mtype is not None:
          return mtype
      else:
          return _("Unknown")
function_tokens: def GetFileType ( fname ) : if os . path . isdir ( fname ) : return _ ( "Folder" ) mtype = mimetypes . guess_type ( fname ) [ 0 ] if mtype is not None : return mtype else : return _ ( "Unknown" )