Fork me on GitHub
#specter
<
2017-05-22
>
dottedmag20:05:19

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.

nathanmarz23:05:05

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

nathanmarz23:05:01

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

dottedmag23:05:15

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