Given a map-based tree, this returns a flattened Map of slash-separated paths to values. If the optional basePath is provided, that will be prepended to all the paths.
Example: A folder contains a set of markdown posts organized into subfolders for year and month:
$ ori posts
"2027":
"07":
04.md: First post
07.md: Second post
"08":
01.md: Third post
04.md: Fourth post
This can be flattened with:
$ ori Tree.deflatePaths posts
2027/07/04.md: First post
2027/07/07.md: Second post
2027/08/01.md: Third post
2027/08/04.md: Fourth post
See also the inverse operation, Tree.inflatePaths. The related Tree.paths returns just the paths as an array.