Skip to content

Instantly share code, notes, and snippets.

@bhenry
Created July 23, 2010 12:56
Show Gist options
  • Save bhenry/487400 to your computer and use it in GitHub Desktop.
Save bhenry/487400 to your computer and use it in GitHub Desktop.
(defn copy-imgs [dir]
(let [imgs (get-images dir)]
(for [img imgs]
(with-open [i (input-stream img)
o (output-stream (file (str
"static/copies/"
(.getName img))))]
(copy i o)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment