List objects
We build a reference to a directory and call list
or listAll()
. We access the references in result.items
directoryRef = ref(storage, "uploads/")
const result = await listAll(directoryRef)
const result = await list(directoryRef, { maxResults: 100 })
result.items // StorageReference[]