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

View File

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