code: func (s *Store) IsDir(ctx context.Context, name string) bool {
  	name = s.prefix + name
  	out.Debug(ctx, "consul.IsDir(%s)", name)
  	count := 0
  	ls, err := s.List(ctx, name)
  	if err != nil {
  		return false
  	}
  	for _, e := range ls {
  		if strings.HasPrefix(e, name) {
  			count++
  		}
  	}
  	return count > 1
  }
docs: // IsDir checks if the given entry is a directory