@@ -206,15 +206,15 @@ export class Reference {
206
206
/**
207
207
* List all items (files) and prefixes (folders) under this storage reference.
208
208
*
209
- * This is a helper method for calling list() repeatedly until there are no
210
- * more results. The default pagination size is 1000.
211
- *
212
- * Note: The results may not be a consistent snapshot if objects are changed
213
- * between paginating requests.
214
- *
215
209
* This is a helper method for calling list() repeatedly until there are
216
210
* no more results. The default pagination size is 1000.
217
211
*
212
+ * Note: The results may not be consistent if objects are changed while this
213
+ * operation is running.
214
+ *
215
+ * Warning: listAll may potentially consume too many resources if there are
216
+ * too many results.
217
+ *
218
218
* @return A Promise that resolves with all the items and prefixes under
219
219
* the current storage reference. `prefixes` contains references to
220
220
* sub-directories and `items` contains references to objects in this
@@ -244,15 +244,15 @@ export class Reference {
244
244
await this . listAllHelper ( accumulator , nextPage . nextPageToken ) ;
245
245
}
246
246
}
247
-
247
+
248
248
/**
249
249
* List items (files) and prefixes (folders) under this storage reference.
250
250
*
251
251
* GCS is a key-blob store. Firebase Storage imposes the semantic of '/'
252
252
* delimited folder structure.
253
253
* Refer to GCS's List API if you want to learn more.
254
254
*
255
- * To adhere to Firebase Rules's Semantics, Firebase storage does not
255
+ * To adhere to Firebase Rules's Semantics, Firebase Storage does not
256
256
* support objects whose paths end with "/" or contain two consecutive
257
257
* "/"s. Firebase Storage List API will filter these unsupported objects.
258
258
* list() may fail if there are too many unsupported objects in the bucket.
@@ -262,7 +262,7 @@ export class Reference {
262
262
* Use the nextPageToken to retrieve more objects.
263
263
* @param options.pageToken The `nextPageToken` from a previous call to
264
264
* list(). If provided, listing is resumed from the previous position.
265
- * @return A promise that resolves with the items and prefixes.
265
+ * @return A Promise that resolves with the items and prefixes.
266
266
* `prefixes` contains references to sub-folders and `items`
267
267
* contains references to objects in this folder. `nextPageToken`
268
268
* can be used to get the rest of the results.
0 commit comments