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.

Python: Copy an existing file

Copies an existing file to a new path in the same bucket.

Parameters

Examples

Copy file

response = (
    supabase.storage
    .from_("avatars")
    .copy(
        "public/avatar1.png",
        "private/avatar2.png"
    )
)