Folder created through box-sdk python/API is not immediately available
Hi,
When I create a folder in my box account programatically throught box-sdk python/API
it gets created and it is visible at UI.
But if I immediately search for it, it returns me a "total_count":0
Step1 :
Create a folder through this api
Steop:2
Search for the folder using box search content and query api
But it is available after like few minutes (5-6)
Note: We want to search if a folder exists only by using it's name(folder name).
-
Hi Surya,
Yes, the indexing service does take a few minutes to index the new folder.
As you might expect the Box service is not an operating system with file allocation tables.
However as you've seen, the creation of a new folder does immediately return the id making the folder available to your code.
I'm curious to understand your use case and why this wouldn't work.
An alternate approach could be that since you do need to pass the parent id to create a folder, you could list the contents of the parent folder and check to see if the folder name exists. But still don't understand the why of your use case.
Best Regards
サインインしてコメントを残してください。
コメント
1件のコメント