box-node-sdk icon indicating copy to clipboard operation
box-node-sdk copied to clipboard

Get all files in a folder recursively

Open hbi99 opened this issue 5 years ago • 5 comments

It would be great if the SDK offered a way to get all files regardless of "depth". In issue #271, there is a suggestion to use iterators and that in turn results in chained promise requests. I can't imagine this is the optimal way to do such procedure. The SDK client should make one request and the API server should climb down iteratively. Preferably something like this:

client.folders.getItems('0', { recursive: true })

The API, SDK, Control Panel and the documentation looks awesome - supreme when compered to MS OneDrive for instance. But they do not support recursive option either while many other cloud storage SDK's do. I hope you will consider adding this feature.

Thanks in advance

hbi99 avatar Nov 24 '20 12:11 hbi99

@hbi99 Thank you for the complement and feedback! We will pass on the feedback to the team that maintains the Folder API.

sujaygarlanka avatar Nov 24 '20 19:11 sujaygarlanka

Any update on this feature?

tushar21 avatar Jan 17 '23 10:01 tushar21

HI @tushar21

Unfortunately, until now, the Box API still hasn't supported getting items recursively, so we can't proceed with this enhancement yet, we will contact to the API team again and ask if they will support it in the near future.

Best, Minh

congminh1254 avatar Jan 17 '23 11:01 congminh1254