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:
parent
2fafe2b5d1
commit
7911e74222
@ -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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user