code: func datastorePathHasBase(p, b string) bool {
  	dp := &object.DatastorePath{}
  	if ok := dp.FromString(p); !ok {
  		return false
  	}
  	return path.Base(dp.Path) == path.Base(b)
  }
docs: // datastorePathHasBase is a helper to check if a datastore path's file matches
  // a supplied file name.