code: func (f *File) Mode() os.FileMode {
  	mode := os.FileMode(f.ino.Mode & 0777)
  	switch f.ino.Mode & ifmt {
  	case ififo:
  		mode |= os.ModeNamedPipe
  	default: // ifchr, ifblk, unknown
  		mode |= os.ModeDevice
  	case ifdir:
  		mode |= os.ModeDir
  	case ifreg:
  		// no bits
  	case iflnk:
  		mode |= os.ModeSymlink
  	case ifsock:
  		mode |= os.ModeSocket
  	}
  	return mode
  }
docs: // Mode returns the file's mode.