Skip to content

Commit

Permalink
Using walk-directory instead of own-rolled recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
ralt committed Jul 22, 2013
1 parent a5b2f10 commit 9b21f38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fs-watcher.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"Returns a list of all the contents in a directory"
(mapcar #'(lambda (pathname)
(when (directory-p pathname)
(let ((subnodes (list-directory pathname)))
(setf pathnames (dir-contents (list-directory pathname)))
(push (list-directory pathname)
pathnames))))
(walk-directory pathname
#'(lambda (pathname)
(push pathname pathnames))
:directories t)))
pathnames))

(defun run-loop (pathnames mtimes callback delay)
Expand Down

0 comments on commit 9b21f38

Please sign in to comment.