Back

[SOLVED] Python backend API only lists first 25 files

  • 0
  • Self Hosted
  • Storage
  • REST API
Aetheris
29 Dec, 2023, 03:37

From the docs it appears that storage.list_files(bucket_id) should get all of the files in a bucket when run. However, it only seems to return 25 of them. Looking at older versions of the docs it looks like there used to be a param to adjust this.

How should I get the complete file list?

TL;DR
The user is experiencing an issue where the Python backend API is only listing the first 25 files, instead of all of them. They have read the documentation and noticed that there used to be a parameter to adjust this, but it is no longer present in the current version. They are asking for guidance on how to get the complete file list. Solution: The user later realizes that the pagination options have been moved to the query parameter. They provide a link to the documentation on pagination for reference.
Aetheris
29 Dec, 2023, 03:37

Python backend API only lists first 25 files

Aetheris
29 Dec, 2023, 04:04

Thanks! I hadn't noticed that the pagination options had been moved to the query param

ideclon
29 Dec, 2023, 04:18

If your issue has been solved, you can mark this post as closed by adding β€œ[SOLVED]” to the beginning of the title

Aetheris
29 Dec, 2023, 09:37

[SOLVED] Python backend API only lists first 25 files

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more