MCPcopy
hub / github.com/google/clusterfuzz / get

Method get

src/clusterfuzz/_internal/google_cloud_utils/storage.py:415–426  ·  view source on GitHub ↗

Get information about a remote file.

(self, remote_path)

Source from the content-addressed store, hash-verified

413 return True
414
415 def get(self, remote_path):
416 """Get information about a remote file."""
417 client = create_discovery_storage_client()
418 bucket, path = get_bucket_name_and_path(remote_path)
419
420 try:
421 return client.objects().get(bucket=bucket, object=path).execute()
422 except HttpError as e:
423 if e.resp.status == 404:
424 return None
425
426 raise
427
428 def delete(self, remote_path):
429 """Delete a remote file."""

Callers 15

_get_instance_infoFunction · 0.45
_wait_for_operationFunction · 0.45
get_bucketFunction · 0.45
convertFunction · 0.45
write_rangeFunction · 0.45
queryMethod · 0.45
get_jobMethod · 0.45
insertMethod · 0.45
get_bucketMethod · 0.45

Calls 3

get_bucket_name_and_pathFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected