Fork me on GitHub

Is Specter a good tool for the following task? I have a representation of file tree {:dirs {"name" <...> "name2" <..>} :files {"fname" <...> "fname2" <...>}}, where values in map under :dirs are of the same structure. And I also have a file path "name/subname/subname/filename". I need to return a new file tree with this path added, potentially creating any missing intermediate directories.


@dottedmag it'll help but won't be as compelling as it is for a lot of other use cases


for this I would dynamically create a path using reduce, comp-paths, and keypath


@nathanmarz Yep, I've got the same impression. Looks like a zipper is a better fit for this particular problem.