mirror of
https://github.com/janet-lang/janet
synced 2025-02-04 11:19:10 +00:00
When directory isn't empty, print what is in it.
This commit is contained in:
parent
6cd35ed9c8
commit
074ae4fc0d
@ -4038,7 +4038,10 @@
|
|||||||
(def s (sep))
|
(def s (sep))
|
||||||
(each y (os/dir x)
|
(each y (os/dir x)
|
||||||
(rmrf (string x s y)))
|
(rmrf (string x s y)))
|
||||||
(os/rmdir x))
|
(try
|
||||||
|
(os/rmdir x)
|
||||||
|
([e f] (debug/stacktrace f e)
|
||||||
|
(each y (os/dir x) (eprint " - " y)))))
|
||||||
(os/rm x))
|
(os/rm x))
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user