Skip to content

Conversation

@eranb
Copy link

@eranb eranb commented Mar 28, 2017

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

@boxxxie
Copy link

boxxxie commented Aug 7, 2018

This would be very useful when dealing with unzipping/re-zipping files (which is actually what i'm doing with .ods files right now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants