code: func (n *Mounter) PathIsDevice(pathname string) (bool, error) {
  	pathType, err := n.GetFileType(pathname)
  	isDevice := pathType == mount.FileTypeCharDev || pathType == mount.FileTypeBlockDev
  	return isDevice, err
  }
docs: // PathIsDevice uses FileInfo returned from os.Stat to check if path refers
  // to a device.