code: func (s *Server) Stat(name string) (os.FileInfo, error) {
  	u := urlParse(name)
  
  	if h, ok := s.schemes[u.Scheme]; ok {
  		sinfo, serr := h.Stat(u)
  		if serr != os.ErrNotExist {
  			return sinfo, serr
  		}
  	}
  
  	return os.Stat(name)
  }
docs: // Stat wraps os.Stat such that we can report directory types as regular files to support archive streaming.
  // In the case of standard vmware-tools, attempts to transfer directories result
  // with a VIX_E_NOT_A_FILE (see InitiateFileTransfer{To,From}Guest).
  // Note that callers on the VMX side that reach this path are only concerned with:
  // - does the file exist?
  // - size:
  //   + used for UI progress with desktop Drag-N-Drop operations, which toolbox does not support.
  //   + sent to as Content-Length header in response to GET of FileTransferInformation.Url,
  //     if the first ReadV3 size is > HGFS_LARGE_PACKET_MAX