// Do this step by step :-
// 1. import * as firebase from firebase;
// write below codes in any function where you want to list all items of firebase storage
var storageRef = firebase.storage().ref("your file path");
storageRef.listAll().then( res => {
res.perfixes.forEach( folder => {
console.log(folder);
});
res.items.forEach( item => {
console.log( item.name );
});
})
// don't forgot to update your security rule version in firebase
// just write on top in your firebase storage security rule ---- rules_version = "2"