1
0
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:
Calvin Rose 2019-04-05 20:01:03 -04:00
parent ee35786c8f
commit 59c69e6896

View File

@ -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)))