Exclude directories having no h5ad files

This commit is contained in:
Andreas Eisenbarth
2022-10-12 17:31:22 +02:00
parent 0e92b73347
commit 6607b15085
2 changed files with 5 additions and 1 deletions
@@ -116,6 +116,7 @@ class S3ItemSource(ItemSource):
branches = None
if len(subdir_keys) > 0:
branches = [self.scan_directory(key) for key in subdir_keys]
branches = [branch for branch in branches if branch.items or branch.branches]
return ItemTree(directory_key, items, branches)