FileTrees.jl
FileTrees.jl copied to clipboard
`save` API is a bit unintuitive
Really nice package! Just taking a close look at the API.
save is a bit odd to me since it doesn't actually save anything unless the function you pass also calls save. Some possible ideas:
- Make
save(path(file), file.value)the default. - Call it
foreachinstead. - Something else?
Call it
foreachinstead.
I like this the most!
But then save also creates the right paths with mkpath before allowing you to write to that path...