# File lib/deltacloud/drivers/mock/mock_driver.rb, line 399
  def blobs(credentials, opts = {})
    check_credentials(credentials)
    blobs=[]
    blobfile = File::join("#{@storage_root}", "buckets", "blobs", "#{opts[:id]}.yml")
    safely do
      blob = YAML.load_file(blobfile)
      return [] unless blob[:bucket] == opts['bucket'] #can't return nil since base_driver invokes .first on return
      blob[:id] = File.basename( blobfile, ".yml" )
      blob[:name] = blob[:id]
      blobs << Blob.new( blob )
      blobs = filter_on( blobs, :id, opts )
    end
  end