silexlabs / unifile

Unified access to cloud storage services through a simple web API.
https://silexlabs.github.io/unifile/
MIT License
144 stars 31 forks source link

pagination #101

Open lexoyo opened 7 years ago

lexoyo commented 7 years ago

Hello I don't see any pagination mechanism in unifile, is it on purpose or on the roadmap?

JbIPS commented 7 years ago

Tough question... I understand the potential need behind pagination (since most of the services behind Unifile use it) but I fear we would drift even farther from the Fs API.

Could you provide an actual use case ? Thank you

lexoyo commented 7 years ago

I fear we would drift even farther from the Fs API

yes that is right

the use case I had in mind was the "ls" which now displays all your repo or folder, and sometimes it is a huge list... We could load the first items and then when the user scroll load more...

But maybe it is not useful. At least we have to make sure that the ls returns all the files and folders, because if there is a maximum in an API, we could end up listing only the 1st "page"