For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: List all files in a bucket

Examples

List files in a bucket

let files = try await supabase.storage
  .from("avatars")
  .list(
    path: "folder",
    options: ListOptions(
      limit: 100,
      offset: 0,
      sortBy: .name,
      order: .ascending
    )
  )

Search files in a bucket

let files = try await supabase.storage
  .from("avatars")
  .list(
    path: "folder",
    options: ListOptions(
      limit: 100,
      offset: 0,
      sortBy: .name,
      order: .ascending,
      search: "jon"
    )
  )