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