Raynes/fs

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

Closed this issue · 2 comments

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.

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

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