On 29 May 2011 16:40, Miki <miki.teb...@gmail.com> wrote: > >> Cool, I'll clean up the code and submit it along with tests and docs. >> While Im about it i may as well write the equivalent macro for tempfile.
I've submitted a bit bucket pull request with the changes. Never used bit bucket before so not sure what the process is for you but let me know if you'd just like me to attach a patch to the ticket instead. I've written a single macro that can be used for both temporary files and directories like this: (fs/with-temp [f (fs/tempfile)] (do-stuff f)) (fs/with-temp [d (fs/tempdir)] (do-stuff d)) There are probably a couple of corner cases that I haven't dealt with properly (e.g. I haven't checked that the result of evaluating the second form in the binding vector can be deleted using fs/deltree. That could cause some problems. Let me know what you think. Cheers, David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en