# File lib/deltacloud/drivers/mock/mock_driver.rb, line 449 def delete_blob(credentials, bucket_id, blob_id, opts={}) check_credentials(credentials) blobfile = File::join("#{@storage_root}", "buckets", "blobs", "#{blob_id}.yml") safely do unless File.exists?(blobfile) raise Deltacloud::BackendError.new(500, self.class.to_s, "blob #{blob_id} doesn't exist", "cannot delete non existant blob") end File.delete(blobfile) end end