List all files in a bucket
- Policy permissions required:
buckets
permissions: noneobjects
permissions:select
const { data, error } = await supabase
.storage
.from('avatars')
.list('folder', {
limit: 100,
offset: 0,
sortBy: { column: 'name', order: 'asc' },
})