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

Use lstat instead of stat

This commit is contained in:
Calvin Rose 2024-05-26 09:11:24 -05:00
parent 2fafe2b5d1
commit 7911e74222

View File

@ -4029,7 +4029,7 @@
(defn- rmrf
"rm -rf in janet"
[x]
(case (os/stat x :mode)
(case (os/lstat x :mode)
nil nil
:directory (do
(each y (os/dir x) (rmrf (string x "/" y)))