make-parents

added
1.2

ns
clojure.java.io

type
function

(make-parents f & more)

Given the same arg(s) as for file, creates all parent directories of
the file they represent.

                (let [file-name "path/to/whatever.txt"]
  (make-parents file-name)
  (spit file-name "whatever"))