RosettaCodeData/Task/Empty-directory/NewLISP/empty-directory.newlisp

4 lines
120 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
(define (empty-dir? path-to-check)
(empty? (clean (lambda (x) (or (= "." x) (= ".." x))) (directory path-to-check)))
)