def rwxtype(mode):
  if stat.S_ISLNK(mode):
    return "l"
  elif stat.S_ISDIR(mode):
    return "d"
  elif stat.S_ISREG(mode):
    return "-"
  else:
    return "?"
Returns l/d/-/? for use in "rwx" style strings.
dataset/ETHPy150Open cloudera/hue/apps/filebrowser/src/filebrowser/lib/rwx.py/rwxtype