Skip to content

Commit

Permalink
Return java.io.Files from find-files
Browse files Browse the repository at this point in the history
  • Loading branch information
wwentland authored and Raynes committed Apr 10, 2012
1 parent f322981 commit bdffcfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fs/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ If 'trim-ext' is true, any extension is trimmed."
(replace \/ \.))))

(defn find-files
"Walks directory recursively and return paths of files matching given pattern."
"Find files matching given pattern."
[path pattern]
(for [f (-> path io/file file-seq)
(for [f (-> path file file-seq)
:when (re-matches pattern (.getName f))]
(.getPath f)))
f))

0 comments on commit bdffcfa

Please sign in to comment.