Dart Reference v2.0

List all files in a bucket

Lists all the files within a bucket.

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: select
  • Refer to the Storage guide on how access control works
Parameters
    path
    REQUIRED
    String

    The folder path.

    searchOptions
    Optional
    SearchOptions

    Options for the search operations such as limit and offset.


final List<FileObject> objects = await supabase
  .storage
  .from('avatars')
  .list();