Tree.

inflatePaths(map)

Given a flat map-like object mapping slash-separated string paths to values, this “inflates” it into the corresponding tree structure.

Example: a YAML file contains:

# deflated.yaml
2027/07/04.md: First post
2027/07/07.md: Second post
2027/08/01.md: Third post
2027/08/04.md: Fourth post

You can inflate this into a tree:

$ ori Tree.inflatePaths deflated.yaml
"2027":
  "07":
    04.md: First post
    07.md: Second post
  "08":
    01.md: Third post
    04.md: Fourth post

See also the inverse operation, Tree.deflatePaths.