Skip to content

Instantly share code, notes, and snippets.

@marchbold
Created July 1, 2022 02:14
Show Gist options
  • Save marchbold/2b8f9130c713743340cada8287dc322c to your computer and use it in GitHub Desktop.
Save marchbold/2b8f9130c713743340cada8287dc322c to your computer and use it in GitHub Desktop.
Listing storage references in a Firebase storage bucket using distriqt's Firebase extension
var ref:StorageReference = FirebaseStorage.service.getReference();
ref.addEventListener( StorageReferenceListEvent.SUCCESS, listSuccessHandler );
ref.listAll();
function listSuccessHandler( event:StorageReferenceListEvent ):void
{
// Contains a list of "items" - each represents a storage item
for each (var item:String in event.items)
{
var ref:StorageReference
= FirebaseStorage.service.getReference( item );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment