make-parents

clojure.java.io

  • (make-parents f & more)
Given the same arg(s) as for file, creates all parent directories of
the file they represent.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/java/io.clj:415 top

(defn make-parents
  "Given the same arg(s) as for file, creates all parent directories of
   the file they represent."
  {:added "1.2"}
  [f & more]
  (when-let [parent (.getParentFile ^File (apply file f more))]
    (.mkdirs parent)))
Vars in clojure.java.io/make-parents:
Used in 0 other vars

Comments top

No comments for make-parents. Log in to add a comment.