1
0
mirror of https://github.com/janet-lang/janet synced 2024-10-01 16:30:40 +00:00

When directory isn't empty, print what is in it.

This commit is contained in:
Calvin Rose 2024-05-26 09:31:26 -05:00
parent 6cd35ed9c8
commit 074ae4fc0d

View File

@ -4038,7 +4038,10 @@
(def s (sep))
(each y (os/dir x)
(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))
nil)