ronin/examples/fs.lisp
Devine Lu Linvega 1e245e144e *
2019-07-20 17:33:42 +09:00

14 lines
236 B
Common Lisp

; filesystem
(
; get files
(def files
(dir
(dirpath)))
; pick a random file
(def random-index
(floor
(random
(len files))))
; print random file name
(echo
(get files random-index)))