List all files in a bucket
Lists all the files within a bucket.
- Policy permissions required:
buckets
permissions: noneobjects
permissions:select
- Refer to the Storage guide on how access control works
Parameters
path
REQUIRED
StringThe folder path.
searchOptions
Optional
SearchOptionsOptions for the search operations such as limit and offset.
limit
Optional
intThe number of files you want to be returned.
offset
Optional
intThe starting position.
sortBy
Optional
SortByThe column to sort by. Can be any column inside a FileObject.
column
Optional
Stringorder
Optional
Stringsearch
Optional
StringThe search string to filter files by.
final List<FileObject> objects = await supabase
.storage
.from('avatars')
.list();