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