| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0c89651 commit 0bb9438
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -123,14 +123,14 @@ Then add the following code to list all your buckets and all the blobs inside yo | |||
| 123 | 123 | ||
| 124 | 124 | ```java | |
| 125 | 125 | // List all your buckets | |
| 126 | - Iterator<Bucket> bucketIterator = storage.list().iterateAll(); | ||
| 126 | + Iterator<Bucket> bucketIterator = storage.list().iterateAll().iterator(); | ||
| 127 | 127 | System.out.println("My buckets:"); | |
| 128 | 128 | while (bucketIterator.hasNext()) { | |
| 129 | 129 | System.out.println(bucketIterator.next()); | |
| 130 | 130 | } | |
| 131 | 131 | ||
| 132 | 132 | // List the blobs in a particular bucket | |
| 133 | - Iterator<Blob> blobIterator = bucket.list().iterateAll(); | ||
| 133 | + Iterator<Blob> blobIterator = bucket.list().iterateAll().iterator(); | ||
| 134 | 134 | System.out.println("My blobs:"); | |
| 135 | 135 | while (blobIterator.hasNext()) { | |
| 136 | 136 | System.out.println(blobIterator.next()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments