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: Copy an existing file

Examples

Copy file

let copy = try await supabase
  .storage
  .from("avatars")
  .copy(from: "public/avatar1.png", to: "private/avatar2.png")

print(copy.fullPath) // "avatars/private/avatar2.png"