--- id: storage-from-list title: "from.list()" slug: storage-from-list custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; Lists all the files within a bucket. ```js const { data, error } = await supabase .storage .from('avatars') .list('folder', { limit: 100, offset: 0, sortBy: { column: 'name', order: 'asc' }, }) ``` ## Parameters ## Notes - Policy permissions required: - `buckets` permissions: none - `objects` permissions: `select` ## Examples ### List files in a bucket ```js const { data, error } = await supabase .storage .from('avatars') .list('folder', { limit: 100, offset: 0, sortBy: { column: 'name', order: 'asc' }, }) ```