Then the only way is to recursively iterate through each sub-folder and get the list of folders within each folder.
I only have Google Drive examples for the recursive method, feel free to adapt to Box:
- Recursive operation - "While" function - Copy Google drive directory
- Copy a directory from Google Drive - #6 by samliew
Hope this helps! Let me know if there are any further questions or issues.
You can also join us in the Make Fans Discord server to chat with other makers!