1.2.0 permalink Arrow_down_16x16
  • (delete-file f & [silently])
Delete file f. Raise an exception if it fails unless silently is true.

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/contrib/java_utils.clj:169 top

(defn delete-file
  "Delete file f. Raise an exception if it fails unless silently is true."
  {:deprecated "1.2"}
  [f & [silently]]
  (or (.delete (file f))
      silently
      (throw (java.io.IOException. (str "Couldn't delete " f)))))
Vars in clojure.contrib.java-utils/delete-file: defn or str
Used in 0 other vars

Comments top

No comments for delete-file. Log in to add a comment.