in storage/StorageReferenceSwift/ViewController.swift [621:638]
func listAllFiles() {
let storage = Storage.storage()
// [START storage_list_all]
let storageReference = storage.reference().child("files/uid")
storageReference.listAll { (result, error) in
if let error = error {
// ...
}
for prefix in result.prefixes {
// The prefixes under storageReference.
// You may call listAll(completion:) recursively on them.
}
for item in result.items {
// The items under storageReference.
}
}
// [END storage_list_all]
}