Skip to content

Commit f0b977b

Browse files
committed
Fix error in discovering all nodes using list_prefix.
The document mentions using `list_prefix("/")` to discover all nodes in a store. But the spec says that a root node has the empty string prefix. So `list_prefix("/")` would return the empty list since no other non-root node can have have the "/" prefix since all non-root nodes need to have a name. This commit fixes that error by replacing the call to `list_prefix` with the empty string.
1 parent daef2bc commit f0b977b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/v3/core/v3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ Let "+" be the string concatenation operator.
15491549
groups.
15501550

15511551
For hierarchies without group storage transformers one may also call
1552-
``list_prefix("/")``. All ``zarr.json`` keys represent either explicit
1552+
``list_prefix("")``. All ``zarr.json`` keys represent either explicit
15531553
groups or arrays. All intermediate prefixes ending in a ``/`` are implicit
15541554
groups.
15551555

0 commit comments

Comments
 (0)