File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- """Create / interact with gcloud storage buckets."""
15+ """Create / interact with gcloud storage buckets.
16+
17+ If you want to check whether a blob exists, you can use the ``in`` operator
18+ in Python::
19+
20+ >>> print 'kitten.jpg' in bucket
21+ True
22+ >>> print 'does-not-exist' in bucket
23+ False
24+
25+ If you want to get all the blobs in the bucket, you can use
26+ :func:`get_all_blobs <gcloud.storage.bucket.Bucket.get_all_blobs>`::
27+
28+ >>> blobs = bucket.get_all_blobs()
29+
30+ You can also use the bucket as an iterator::
31+
32+ >>> for blob in bucket:
33+ ... print blob
34+ """
1635
1736import os
1837import six
You can’t perform that action at this time.
0 commit comments