Created
February 28, 2013 08:55
-
-
Save Centaur/5055309 to your computer and use it in GitHub Desktop.
collect file paths
This file contains hidden or 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
(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