Tree.

paths(tree)

Returns an array of slash-separated paths for all values in the map-based tree.

$ ori greetings.yaml
english:
  a: Hello, a.
  b: Hello, b.
  c: Hello, c.
french:
  a: Bonjour, a.
  b: Bonjour, b.
  c: Bonjour, c.
spanish:
  a: Hola, a.
  b: Hola, b.
  c: Hola, c.
$ ori Tree.paths greetings.yaml
- english/a
- english/b
- english/c
- french/a
- french/b
- french/c
- spanish/a
- spanish/b
- spanish/c

Note: If the indicated tree supports the trailingSlashKeys property, the Tree.paths operation will only descend into child nodes whose keys are marked with trailing slashes.