fs
fs copied to clipboard
added with-temp-dir macro
might be useful
(me.raynes.fs/with-temp-dir [source target]
(let [f (str source "/shuki.txt")
t (str target "/shuki.txt")]
(spit f "hello")
(me.raynes.fs/rename f t)
(slurp t)))
all temp folders will be deleted after execution
This would be very useful when dealing with unzipping/re-zipping files (which is actually what i'm doing with .ods files right now)