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 Storage 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]) =>
    handleThenable(jsObject.list(options?.jsObject))
        .then(ListResult.getInstance);