mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Update cook cleaning up directory.
This commit is contained in:
parent
ee35786c8f
commit
59c69e6896
@ -22,7 +22,8 @@
|
|||||||
[path]
|
[path]
|
||||||
(if (= (os/stat path :mode) :directory)
|
(if (= (os/stat path :mode) :directory)
|
||||||
(do
|
(do
|
||||||
(each subpath (os/dir path) (rm subpath))
|
(each subpath (os/dir path)
|
||||||
|
(rm (string path sep subpath)))
|
||||||
(os/rmdir path))
|
(os/rmdir path))
|
||||||
(os/rm path)))
|
(os/rm path)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user