-
Notifications
You must be signed in to change notification settings - Fork 148
Feat implement storage cleaner in java #284
Feat implement storage cleaner in java #284
Conversation
@eldadfux @Meldiron @PineappleIOnic Please review this PR also 😀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we see a screenshot of the execution working?
@PineappleIOnic Here's the screenshot |
@PineappleIOnic Please merge the PR now 😀 |
storage.listFiles( | ||
new Continuation<Object>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add pagination, this will only return 25 files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the API docs it's mentioned that it lists all user files. https://appwrite.io/docs/client/storage#storageListFiles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Prakhar-Agarwal-byte yes that endpoint can be used to list all the files. But you need to use the limit
and offset
parameters to get all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add support for pagination in your cloud function
@Prakhar-Agarwal-byte closing this PR for now. Feel free to reopen it / create a new one when you're ready to start working on it once again |
Added a storage cleaner function demo in Java
Makes progress towards appwrite/appwrite#2031