oke.
This commit is contained in:
@@ -141,7 +141,8 @@
|
||||
|
||||
(define (list-dir/files directory regexp #:recursive [recursive #f])
|
||||
(filter (lambda (path)
|
||||
(regexp-match? regexp path))
|
||||
(let ((fn (file-name-from-path path)))
|
||||
(regexp-match? regexp fn)))
|
||||
(if recursive
|
||||
(for/list ([path (in-directory directory)])
|
||||
path)
|
||||
|
||||
Reference in New Issue
Block a user