1.2.0 permalink Arrow_down_16x16

find-clojure-sources-in-dir

clojure.contrib.find-namespaces

  • (find-clojure-sources-in-dir dir)
Searches recursively under dir for Clojure source files (.clj).
Returns a sequence of File objects, in breadth-first sort order.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/find_namespaces.clj:34 top

(defn find-clojure-sources-in-dir
  "Searches recursively under dir for Clojure source files (.clj).
  Returns a sequence of File objects, in breadth-first sort order."
  [^File dir]
  ;; Use sort by absolute path to get breadth-first search.
  (sort-by #(.getAbsolutePath %)
           (filter clojure-source-file? (file-seq dir))))
Vars in clojure.contrib.find-namespaces/find-clojure-sources-in-dir: defn file-seq filter sort-by
Used in 0 other vars

Comments top

No comments for find-clojure-sources-in-dir. Log in to add a comment.