-
-
Save tomjack/1d20d755c9cb5f24f630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn public-file [path] | |
(if-let [file (.getResource (clojure.lang.RT/baseLoader) (str "public" path))] | |
(-> file .getFile (java.io.File.)) | |
nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment