Skip to content

Instantly share code, notes, and snippets.

@abedra abedra/gist:167970
Created Aug 14, 2009

Embed
What would you like to do?
(defn filenames-in-dir
"Returns pathnames relative to the dir."
[dir]
(map #(.. % getPath (replace dir ""))
(file-seq (java.io.File. dir))))
(defn available-books
(filter #(re-find #"pdf$" %) (filenames-in-dir "public/books")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.