Raynes / fs

File system utilities for Clojure.
453 stars 119 forks source link

temp-dir loops forever on non-existent java.io.tmpdir #62

Closed tchagnon closed 10 years ago

tchagnon commented 10 years ago

fs/temp-dir loops forever if the java.io.tmpdir directory does not exist.

% JAVA_OPTS="-Djava.io.tmpdir=/tmp/nonexistent" lein repl
user=> (require '[me.raynes.fs :as fs])
nil
user=> (fs/tmpdir)
"/tmp/nonexistent"
user=> (fs/temp-dir "foo")

Pull request forthcoming.

Raynes commented 10 years ago

Good catch! Thanks for the pull request (the future pull request. I'm a time lord, you see)!

tchagnon commented 10 years ago

Thanks for the great lib. Let me know if you want to do something different with that change and I can rework it.