Skip to content

Instantly share code, notes, and snippets.

@Centaur
Created February 28, 2013 08:55
Show Gist options
  • Save Centaur/5055309 to your computer and use it in GitHub Desktop.
Save Centaur/5055309 to your computer and use it in GitHub Desktop.
collect file paths
(ns collect.core
(:require [clojure.java.io :as io]))
(defn fromRoot [rootDir]
(doseq
[f (->> (io/file rootDir)
.listFiles
(filter #(.endsWith (.getName %) ".jar"))
(map #(str "lib/" (.getName %))))]
(println f)
))
(fromRoot "f:/babydancer-setup/lib")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment