Updated fs example
This commit is contained in:
parent
93c69db908
commit
0f29e94ee3
@ -4,8 +4,11 @@
|
||||
(def files
|
||||
(ls
|
||||
(folder)))
|
||||
; print files count
|
||||
; pick a random file
|
||||
(def random-index
|
||||
(floor
|
||||
(random
|
||||
(len files))))
|
||||
; print random file name
|
||||
(echo
|
||||
(concat "Current folder: "
|
||||
(folder) " contains "
|
||||
(len files) " files"))))
|
||||
(get files random-index)))
|
Loading…
x
Reference in New Issue
Block a user