mirror of
https://github.com/janet-lang/janet
synced 2025-01-27 07:34:44 +00:00
Do not recurse into symlinks when cleaning.
This commit is contained in:
parent
9b5c6112e5
commit
e1b6175efd
@ -267,7 +267,7 @@
|
|||||||
"Remove a directory and all sub directories."
|
"Remove a directory and all sub directories."
|
||||||
[path]
|
[path]
|
||||||
(try
|
(try
|
||||||
(if (= (os/stat path :mode) :directory)
|
(if (= (os/lstat path :mode) :directory)
|
||||||
(do
|
(do
|
||||||
(each subpath (os/dir path)
|
(each subpath (os/dir path)
|
||||||
(rm (string path sep subpath)))
|
(rm (string path sep subpath)))
|
||||||
|
Loading…
Reference in New Issue
Block a user