Wrappers for new functionality introduced in JDK7.
This library is no longer actively maintained. You should use something like hawk instead.
clj-jdk7 on clojars
See the autodocs
Watch a folder for new, modified, and deleted files:
(add-fs-watch
#(println (.toString %1) %2)
"/home/user/watch"
[:create :modify :delete])
Create two temporary files, which will be deleted when the body completes:
(with-temp-file [temp1 (create-temp-file)
temp2 (create-temp-file :suffix ".txt")]
(println (.toString temp1))
(println (.toString temp2)))
Same as above, but a shortcut for only one file:
(with-temp-file temp
(println (.toString temp)))
Copyright (C) 2011 Anthony Rosequist
Distributed under the Eclipse Public License, the same as Clojure.