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(
1065
1065
>>> bucket = client.get_bucket('my-bucket-name')
1066
1066
>>> blob = storage.Blob('path/to/blob', bucket)
1067
1067
1068
- >>> with open('file-to-download-to') as file_obj:
1068
+ >>> with open('file-to-download-to', 'w' ) as file_obj:
1069
1069
>>> client.download_blob_to_file(blob, file_obj) # API request.
1070
1070
1071
1071
@@ -1074,7 +1074,7 @@ def download_blob_to_file(
1074
1074
>>> from google.cloud import storage
1075
1075
>>> client = storage.Client()
1076
1076
1077
- >>> with open('file-to-download-to') as file_obj:
1077
+ >>> with open('file-to-download-to', 'w' ) as file_obj:
1078
1078
>>> client.download_blob_to_file(
1079
1079
>>> 'gs://bucket_name/path/to/blob', file_obj)
1080
1080
You can’t perform that action at this time.
0 commit comments