1
0
mirror of https://github.com/janet-lang/janet synced 2025-07-05 11:32:54 +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 (defn- rmrf
"rm -rf in janet" "rm -rf in janet"
[x] [x]
(case (os/stat x :mode) (case (os/lstat x :mode)
nil nil nil nil
:directory (do :directory (do
(each y (os/dir x) (rmrf (string x "/" y))) (each y (os/dir x) (rmrf (string x "/" y)))