File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1065,7 +1065,7 @@ def download_blob_to_file(
10651065 >>> bucket = client.get_bucket('my-bucket-name')
10661066 >>> blob = storage.Blob('path/to/blob', bucket)
10671067
1068- >>> with open('file-to-download-to') as file_obj:
1068+ >>> with open('file-to-download-to', 'w' ) as file_obj:
10691069 >>> client.download_blob_to_file(blob, file_obj) # API request.
10701070
10711071
@@ -1074,7 +1074,7 @@ def download_blob_to_file(
10741074 >>> from google.cloud import storage
10751075 >>> client = storage.Client()
10761076
1077- >>> with open('file-to-download-to') as file_obj:
1077+ >>> with open('file-to-download-to', 'w' ) as file_obj:
10781078 >>> client.download_blob_to_file(
10791079 >>> 'gs://bucket_name/path/to/blob', file_obj)
10801080
You can’t perform that action at this time.
0 commit comments