box / box-node-sdk

A Javascript interface for interacting with the Box API. You can find the node package at
https://www.npmjs.com/package/box-node-sdk
Apache License 2.0
187 stars 121 forks source link

Get all files in a folder recursively #558

Open hbi99 opened 3 years ago

hbi99 commented 3 years ago

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

sujaygarlanka commented 3 years ago

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

tushar21 commented 1 year ago

Any update on this feature?

congminh1254 commented 1 year ago

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

vaish2510 commented 3 weeks ago

Will this ever be taken by the team? Would be of much help if recursively getting the nested folders is supported via the folders api

lukaszsocha2 commented 3 weeks ago

Hi, currently there are no plans to implement these feature in a near future. However I advice to add your idea for enhancement to Box Pulse. If a lot of people vote for this feature it might get a higher priority. Best, @lukaszsocha2