Closed saurabhnanda closed 6 years ago
You have to have folder structure in place in order for writeFile
to write-a-file. It doesn't create directories for you.
Hence
md /tmp/elm
:)
Hi @saurabhnanda. Thanks for the issue. specsToDir
actually comes from https://github.com/krisajenkins/elm-export, so if you think the behaviour could be improved then please file an issue over there.
I was trying out
servant-elm
for the first time, and kept running into this issue:It would be a good idea to use the equivalent of
mkdir -p
to create the output directory.