Created
May 21, 2010 08:01
-
-
Save anonymous/408610 to your computer and use it in GitHub Desktop.
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
(def *enc-files-dir* "/home/blah/sandbox/enc") | |
(def *dec-files-dir* "/home/blah/sandbox/dec") | |
(defstruct file-map :filename :path :modified) | |
(defn #^{:doc "Return vec of file-maps"} | |
file-list [path] | |
(vec | |
(map (fn [n] | |
(struct-map file-map | |
:filename (.getName n) | |
:path (str (.toURI n)) | |
:modified (.lastModified n))) (vec (.listFiles (File. path)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment