I may well be too stupid for newlisp. I'm a glutton for punishment, however, so I'll press on :-)
here is the "show-tree" function from the Code Patterns document:
Code: Select all
; walks a disk directory and prints all path-file names
;
(define (show-tree dir)
(if (directory dir)
(dolist (nde (directory dir))
(if (and (directory? (append dir "/" nde))
(!= nde ".") (!= nde ".."))
(show-tree (append dir "/" nde))
(println (append dir "/" nde))))))
Once I (you) solve this little dilemma I will be well on my way to world domination.
[/code]