code: func New(dir string) (blobserver.Storage, error) {
  	if v, err := diskpacked.IsDir(dir); err != nil {
  		return nil, err
  	} else if v {
  		return diskpacked.New(dir)
  	}
  	if v, err := localdisk.IsDir(dir); err != nil {
  		return nil, err
  	} else if v {
  		return localdisk.New(dir)
  	}
  	return diskpacked.New(dir)
  }
docs: // New returns a new blobserver Storage implementation, storing blobs in the provided dir.
  // If dir has an index.kv file, a diskpacked implementation is returned.