Title: In storage.Key.get_contents_to_filename, improve error checking and exception handling and add timestamp to file object · Issue #148 · googleapis/google-cloud-python · GitHub
Open Graph Title: In storage.Key.get_contents_to_filename, improve error checking and exception handling and add timestamp to file object · Issue #148 · googleapis/google-cloud-python
X Title: In storage.Key.get_contents_to_filename, improve error checking and exception handling and add timestamp to file object · Issue #148 · googleapis/google-cloud-python
Description: From TODO: # TODO: Add good error checking. # TODO: Add good exception handling. # TODO: Set timestamp? Make optional, default being to set it if possible? Also, consider renaming get_contents_to_filename and get_contents_to_file. The ge...
Open Graph Description: From TODO: # TODO: Add good error checking. # TODO: Add good exception handling. # TODO: Set timestamp? Make optional, default being to set it if possible? Also, consider renaming get_contents_to_f...
X Description: From TODO: # TODO: Add good error checking. # TODO: Add good exception handling. # TODO: Set timestamp? Make optional, default being to set it if possible? Also, consider renaming get_contents_to_f...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/148
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In storage.Key.get_contents_to_filename, improve error checking and exception handling and add timestamp to file object","articleBody":"From TODO:\n\n``` python\n # TODO: Add good error checking.\n # TODO: Add good exception handling.\n # TODO: Set timestamp? Make optional, default being to set it if possible?\n```\n\nAlso, consider renaming `get_contents_to_filename` and `get_contents_to_file`. The `get` is a misleading verb, since a `read` into a file is what is happening.\n\nSee [`gcloud.storage.Key.get_contents_to_filename`](https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gcloud/storage/key.py#L169) for relevant code and #146 for some context.\n","author":{"url":"https://github.com/dhermes","@type":"Person","name":"dhermes"},"datePublished":"2014-09-22T03:32:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/148/google-cloud-python/issues/148"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aa4fdbd3-1803-9e38-0670-41927921b7b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B59C:3876B2:CFC47A:1178F78:6A4D7D88 |
| html-safe-nonce | 9b963951cf2b28016504f12bee6912143a231644a6aff1568bbc87475c2f5ec0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTlDOjM4NzZCMjpDRkM0N0E6MTE3OEY3ODo2QTREN0Q4OCIsInZpc2l0b3JfaWQiOiIxNjQ0ODU4NTA5MTk0MjYzOTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3de013a4565bc02db852107e58fd2def317f4d4fa723a1190a9bd8c78eb1e0a7 |
| hovercard-subject-tag | issue:43360308 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/148/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b1f8551081313f9ef3d097aeb949ab847a0a1fa05a7306b551deaa2dee83959/googleapis/google-cloud-python/issues/148 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b1f8551081313f9ef3d097aeb949ab847a0a1fa05a7306b551deaa2dee83959/googleapis/google-cloud-python/issues/148 |
| og:image:alt | From TODO: # TODO: Add good error checking. # TODO: Add good exception handling. # TODO: Set timestamp? Make optional, default being to set it if possible? Also, consider renaming get_contents_to_f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhermes |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width