Swift: List all files in a bucket
- RLS policy permissions required:
buckets table permissions: none 
objects table permissions: select 
 
- Refer to the Storage guide on how access control works
 
Examples
List files in a bucket
let files = try await supabase.storage
  .from("avatars")
  .list(
    path: "folder",
    options: SearchOptions(
      limit: 100,
      offset: 0,
      sortBy: SortBy(column: "name", order: "asc")
    )
  )
Search files in a bucket
let files = try await supabase.storage
  .from("avatars")
  .list(
    path: "folder",
    options: SearchOptions(
      limit: 100,
      offset: 0,
      sortBy: SortBy(column: "name", order: "asc"),
      search: "jon"
    )
  )