Skip to main content
Question

Folder created through box-sdk python/API is not immediately available

  • May 27, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

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
vcuvBi_V9N4wcSff2eTsKov7w.png
Steop:2
Search for the folder using box search content and query api

ivhNIykxbHN7tGUWj0tOh-I1w.png

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).


1 reply

Forum|alt.badge.img
  • Author
  • Known Participant
  • 34746 replies
  • May 27, 2025

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