Skip to content

Instantly share code, notes, and snippets.

@crittermike
Created December 19, 2011 21:20
Show Gist options
  • Save crittermike/1498926 to your computer and use it in GitHub Desktop.
Save crittermike/1498926 to your computer and use it in GitHub Desktop.
(ns my-file-utils
(:import java.io.File))
(def files (list))
(defn list-files [d]
(doseq [f (.listFiles d)]
(if (.isDirectory f)
(conj files (.getName f)))))
(list-files (File. "/home/mcrittenden/Downloads"))
(printf (first files))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment