Skip to content

Commit

Permalink
Update Storage and Bucket snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Aug 26, 2016
1 parent 882bf91 commit 5dda48c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ public boolean delete(BucketSourceOption... options) {
*
* <p>Example of listing the blobs in the bucket.
* <pre> {@code
* Iterator<Blob> blobIterator = bucket.list().iterateAll();
* Page<Blob> blobs = bucket.list();
* Iterator<Blob> blobIterator = blobs.iterateAll();
* while (blobIterator.hasNext()) {
* Blob blob = blobIterator.next();
* // do something with the blob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,10 @@ public static Builder builder() {
* Lists the bucket's blobs. If the {@link BlobListOption#currentDirectory()} option is provided,
* results are returned in a directory-like mode.
*
* <p>Example of listing buckets, specifying the page size and a name prefix.
* <p>Example of listing blobs in a provided directory.
* <pre> {@code
* String bucketName = "my_unique_bucket";
* String directory = "my_directory";
* String directory = "my_directory/";
* Page<Blob> blobs = storage.list(bucketName, BlobListOption.currentDirectory(),
* BlobListOption.prefix(directory));
* Iterator<Blob> blobIterator = blobs.iterateAll();
Expand Down

0 comments on commit 5dda48c

Please sign in to comment.