mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-10 22:20:56 +08:00
Exclude directories having no h5ad files
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user