8000 docs(storage): update description in storage_download_file (#6553) · orossini/python-docs-samples@7df14de · GitHub
[go: up one dir, main page]

Skip to content

Commit 7df14de

Browse files
authored
docs(storage): update description in storage_download_file (GoogleCloudPlatform#6553)
1 parent 169030d commit 7df14de

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

storage/cloud-client/storage_download_file.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222

2323
def download_blob(bucket_name, source_blob_name, destination_file_name):
2424
"""Downloads a blob from the bucket."""
25+
# The ID of your GCS bucket
2526
# bucket_name = "your-bucket-name& 9E5F quot;
27+
28+
# The ID of your GCS object
2629
# source_blob_name = "storage-object-name"
30+
31+
# The path to which the file should be downloaded
2732
# destination_file_name = "local/path/to/file"
2833

2934
storage_client = storage.Client()
@@ -38,8 +43,8 @@ def download_blob(bucket_name, source_blob_name, destination_file_name):
3843
blob.download_to_filename(destination_file_name)
3944

4045
print(
41-
"Blob {} downloaded to {}.".format(
42-
source_blob_name, destination_file_name
46+
"Downloaded storage object {} from bucket {} to local file {}.".format(
47+
source_blob_name, bucket_name, destination_file_name
4348
)
4449
)
4550

0 commit comments

Comments
 (0)
0