Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit bbd9a84

Browse files
committed
Merge pull request #22 from LadislavSopko/master
move => rmdir (supported from win95)
2 parents 90cd974 + dc53be6 commit bbd9a84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dist/sys.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,11 @@ function delete(path)
376376
elseif is_file(path) then
377377
return os.remove(path)
378378
else
379-
--return exec("rd /S /Q " .. quote(path))
380-
return exec("move /y " .. quote(path) .. " " .. quote(tmp_dir()))
379+
-- return exec("rd /S /Q " .. quote(path))
380+
-- return exec("move /y " .. quote(path) .. " " .. quote(tmp_dir()))
381+
382+
-- rmdir is suported from win95
383+
return exec("rmdir /s /q " .. quote(path))
381384
end
382385
else
383386
return exec("rm -rf " .. quote(path))

0 commit comments

Comments
 (0)