Is there a more efficient way to retrieve a BoxItem
(either a Folder or File) directly by its path in Box?
Currently, my approach involves starting at the root folder and recursively scanning through the items, matching each part of the path until I reach the desired item.
For example, with the path "Logs/Ben"
, I start at the root, iterate through its children until I find the "Logs" folder, then iterate through its children until I find the "Ben" folder.
This method works, but it involves multiple API calls, which I believe could be optimized.
Is there a way to directly access a BoxItem
using its full path, thereby reducing the number of API calls my application needs to make?
Any guidance or alternative approaches would be greatly appreciated.