JohnCoene / firebase

Google FIrebase for shiny
https://firebase.john-coene.com
GNU Affero General Public License v3.0
171 stars 26 forks source link

Enh: return sub-folders when calling `list_all_files()` #38

Closed ncullen93 closed 1 year ago

ncullen93 commented 2 years ago

Right now, calling e.g., firebase::Storage$new()$ref(some_directory)$list_files_all(response = 'some_response') returns only the list of files in that directory. It would be nice to also return the list of any sub-folders in that directory. I think this is because the custom message handler 'fireblaze-list-all-files' in storage.js only returns res.items, while the sub-folders are in a separate key called res.prefixes (see ref)

Ref: https://firebase.google.com/docs/reference/js/v8/firebase.storage.Reference#listall