Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added with-temp-dir macro #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added with-temp-dir macro #110

wants to merge 1 commit into from

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