earlymorning logo
Firebase
OverviewCLI toolSDKsInitialization
AuthAuth OverviewEmail accountIdentity ProviderAnonymous account
FirestoreFirestoreCollectionDocumentQueryCreate and update dataFirestore Security rules
StorageStorageObject: reference and metadataList objectsDownload an objectUpload an objectUpload task (advanced)Setting the bucket CORS header
Cloud FunctionsCloud FunctionsDefine Callable functionsInvoke a Callable functionsHTTP Cloud function (REST-API)Functions on Auth eventsFunctions on Firestore eventsEnvironment variablesDebug Functions locallyCron jobsDeployment
Timestamp and dates
GenKitGenKit.prompt Prompt fileTypescript Prompt file
earlymorning.dev / Firebase / List objects

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[]
Join
Discord
earlymorning logo

© 2025 - All rights reserved

Overview
CLI tool
SDKs
Initialization
Auth Overview
Email account
Identity Provider
Anonymous account
Firestore
Collection
Document
Query
Create and update data
Firestore Security rules
Storage
Object: reference and metadata
List objects
Download an object
Upload an object
Upload task (advanced)
Setting the bucket CORS header
Cloud Functions
Define Callable functions
Invoke a Callable functions
HTTP Cloud function (REST-API)
Functions on Auth events
Functions on Firestore events
Environment variables
Debug Functions locally
Cron jobs
Deployment
Timestamp and dates
GenKit
.prompt Prompt file
Typescript Prompt file
earlymorning.dev / Firebase / List objects

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[]