caterva2.Root.__iter__#

Root.__iter__()#

Iterate over the files and datasets in the root.

Returns:

An iterator over the files and datasets in the root.

Return type:

iter

Examples

>>> import caterva2 as cat2
>>> root = cat2.Root('example', 'https://demo.caterva2.net')
>>> for file in root:
...     print(file)
ds-2d-fields.b2nd
lung-jpeg2000_10x.b2nd
ds-1d-fields.b2nd
ds-1d.b2nd
ds-hello.b2frame
ds-sc-attr.b2nd
README.md
ds-1d-b.b2nd
tomo-guess-test.b2nd
dir2/ds-4d.b2nd
dir1/ds-3d.b2nd
dir1/ds-2d.b2nd