GeezerVison is showing github.com — Account for existing objects in bucket when using storage.bucket.Bucket.upload_file · Issue #162 · googleapis/google-cloud-python
Account for existing objects in bucket when using storage.bucket.Bucket.upload_file #162Labels 🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DescriptionFrom TODO:
# TODO: What do we do about overwriting data?
See storage.bucket.Bucket.upload_file for relevant code and #146 for some context.
git blame output
b7f1b774 (JJ Geewax 2014-01-29 18:02:29 -0500 201) # TODO: What do we do about overwriting data?
Activitydhermes commented on Sep 22, 2014 ContributorAuthor More actions It's possible there is an API feature to only write if doesn't exist (though race conditions may make this a PITA). May also be worth requesting from API eng team? added this to the This milestone has been deleted milestone on Sep 24, 2014tseaver commented on Oct 29, 2014 Once support for the lifecycle field of the bucket resource lands (see #314), this issue will resolve: buckets with no lifecycle defined will overwrite without checking for existing objects, while those with lifecycle policies will obey them (generations, etc.). tseaver commented on Oct 29, 2014 See the lifecycle spec for notes on configuring the bucket's lifecycle policy. tseaver commented on Oct 31, 2014 The lifecycle rules for number of versions will only be effective if object versioning is enabled on the bucket. Currently, we can enable this via:
self.patch_metadata({'versioning': {'enabled': True})
#314 proposes adding more direct support for the versioning and lifecycle fields (along with others). added a commit that references this issue on Nov 3, 2014This issue will close once commit a0df78a is merged into the 'main' branch.a0df78a added 8 commits that reference this issue on Nov 22, 2025This issue will close once commit bde2247 is merged into the 'main' branch.bde2247 This issue will close once commit 1f800b9 is merged into the 'main' branch.1f800b9 This issue will close once commit a73ac6d is merged into the 'main' branch.a73ac6d This issue will close once commit 381f60b is merged into the 'main' branch.381f60b This issue will close once commit 6c39bb4 is merged into the 'main' branch.6c39bb4 This issue will close once commit b7caf11 is merged into the 'main' branch.b7caf11 This issue will close once commit 7c0c837 is merged into the 'main' branch.7c0c837 This issue will close once commit a612dff is merged into the 'main' branch.a612dff
MetadataMetadata🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DevelopmentNo branches or pull requestsIssue actions
|