-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Labels
bugAdded to issues that describes SDK bugAdded to issues that describes SDK bug
Description
- I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
- I have checked that the [API documentation][api-docs] doesn't solve my issue.
- I have searched the [Box Developer Forums][dev-forums] and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
- I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
Description of the Issue
Related commit to this issue: #861
My code:
int assetsRead = 0;
for (BoxItem.Info itemInfo : boxFolder.getChildren(date, ASC,
offset, limit, REQUIRED_FIELDS)) {
if (itemInfo instanceof BoxFile.Info) {
// do something
} else if (itemInfo instanceof BoxFolder.Info) {
// do something
}
assetsRead++;
}
Output: assetsRead > limit
I set the limit to 1000. While crawling folders that have more than 3000 subfolders/files, the boxFolder.getChildren returns all the items in the folder instead of specified limit.
Please look into this issue as this is affecting our service.
I did not find any documentation related to this feature in - https://github.com/box/box-java-sdk/blob/main/doc/folders.md#get-a-folders-items
Please don't close the issue until this is resolved.
Metadata
Metadata
Assignees
Labels
bugAdded to issues that describes SDK bugAdded to issues that describes SDK bug