# Question about BlobContainer.children

**URL:** <https://community.cratedb.com/t/question-about-blobcontainer-children/1499>\
**Category:** CrateDB\
**Tags:** integration, fundamentals\
**Created:** [May 30, 2023, 3:53pm UTC](https://community.cratedb.com/t/question-about-blobcontainer-children/1499 "2023-05-30T15:53:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bergwerf](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/bergwerf/32/929_2.png) [@bergwerf](https://community.cratedb.com/u/bergwerf)\
**Post date:** [May 30, 2023, 3:53pm UTC](https://community.cratedb.com/t/question-about-blobcontainer-children/1499/1 "2023-05-30T15:53:03Z")

</div>

Context: I am developing a Google Cloud repository integration for CrateDB.

The workings and intended purpose of BlobContainer.children are quite unclear to me. Multiple BlobContainers with a different base path could be created in the same bucket next to each other, why should these be nested?

The Azure and S3 implementation of BlobContainer.children does not seem to respect the description: “A child container is defined as a container whose `path()` method returns a path that has this containers `path()` return as its prefix and has one more path element than the current,” and instead looks much more like an alternative to listBlobs (The S3 implementation contains a horrible infinite while loop, but that’s another topic).

Is the `children` method supposed to return a list of ‘sub-directories’? (of course in a blob storage this is not a real thing). If it is not crucial to making snapshots work, I am tempted to leave it unimplemented.

---

<div class="post-metadata">

**Author:** ![hernanc](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/hernanc/32/676_2.png) [@hernanc](https://community.cratedb.com/u/hernanc)\
**Post date:** [June 23, 2023, 4:36pm UTC](https://community.cratedb.com/t/question-about-blobcontainer-children/1499/2 "2023-06-23T16:36:28Z")

</div>

Just in case anyone comes across this thread in the future, the discussion continued on [Add Google Cloud Storage Repository [wip] by bergwerf · Pull Request #14224 · crate/crate · GitHub](https://github.com/crate/crate/pull/14224#issuecomment-1587198000)
