Python: List all files in a bucket (original) (raw)

Lists all the files within a bucket.

Parameters

(Optional)
The folder path.

(Optional)
undefined

Examples

List files in a bucket

response = (
    supabase.storage
    .from_("avatars")
    .list(
        "folder",
        {
            "limit": 100,
            "offset": 0,
            "sortBy": {"column": "name", "order": "desc"},
        }
    )
)

Search files in a bucket

response = (
    supabase.storage
    .from_("avatars")
    .list(
        "folder",
        {
            "limit": 100,
            "offset": 0,
            "sortBy": {"column": "name", "order": "desc"},
            "search": "jon",
        }
    )
)