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)
}
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)
}
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 ) }
// datastorePathHasBase is a helper to check if a datastore path's file matches
// a supplied file name.
datastorePathHasBase is a helper to check if a datastore path s file matches a supplied file name .