list method

Future<ListResult> list([
  1. ListOptions? options
])

List items (files) and prefixes (folders) under this storage reference.

List API is only available for Firebase Rules Version 2.

GCS is a key-blob store. Firebase Storage imposes the semantic of '/' delimited folder structure. Refer to GCS's List API if you want to learn more.

To adhere to Firebase Rules's Semantics, Firebase Storage does not support objects whose paths end with "/" or contain two consecutive "/"s. Firebase Storage List API will filter these unsupported objects. list may fail if there are too many unsupported objects in the bucket.

Implementation

Future<ListResult> list([ListOptions? options]) async {
  assert(options == null ||
      options.maxResults == null ||
      options.maxResults! > 0 && options.maxResults! <= 1000);
  return ListResult._(storage, await _delegate.list(options));
}