mirror of
https://github.com/janet-lang/janet
synced 2025-10-22 11:17:40 +00:00
Update cook cleaning up directory.
This commit is contained in:
@@ -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)))
|
||||
|
||||
|
Reference in New Issue
Block a user