Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deeply nested folders sequence #3

Closed
Mehonoshin opened this issue Jun 10, 2015 · 2 comments
Closed

Deeply nested folders sequence #3

Mehonoshin opened this issue Jun 10, 2015 · 2 comments

Comments

@Mehonoshin
Copy link

Hi, folks!

I faced an issue with folder_from_path method.

When I have a deeply nested folders sequence, for example /1/2/3/4/5/6/7/8/9/10/.. and so on.
If I run folder_from_path, it runs an API request for each of these folders.

Such approach sometimes faces us with situation, when API calls limit is reached.
Another problem is that on 100 nested directories it takes too much time.

Maybe there is some workaround, or I could try to make PR with fix?

@cburnette
Copy link
Owner

Hey Stanislav, it's a known issue on the Box side that you have to walk the tree using their API to resolve a path by name. The Box engineering team is currently considering adding a new endpoint that will accept a path and do a quick resolution to folder or file id. I don't think it will be available in the next few months, however. For now I would employ a lot of caching on your end once you have resolved a path to an id.

@Mehonoshin
Copy link
Author

Thanks for your response!

I've decided to change my app logic, to use id instead of path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants