mirror of
https://github.com/vxcontrol/lualibs-winapi.git
synced 2026-07-01 13:54:03 -04:00
manually apply @ryugwang pull request #10 fixing remove_dir
This commit is contained in:
@@ -2675,7 +2675,7 @@ static const char *lua_code_block = ""\
|
||||
" end\n"\
|
||||
"end\n"\
|
||||
"function winapi.make_dir(dir) return exec_cmd('mkdir',dir) end\n"\
|
||||
"function winapi.remove_dir(dir,tree) return exec_cmd('rmdir '.. (tree and '/S'),dir) end\n"\
|
||||
"function winapi.remove_dir(dir,tree) return exec_cmd('rmdir '.. ((tree and '/S /Q') or ''),dir) end\n"\
|
||||
"function winapi.delete_file_or_dir(file) return exec_cmd('del',file) end\n"\
|
||||
"function winapi.files(mask,subdirs,attrib)\n"\
|
||||
" local flags = '/B '\n"\
|
||||
|
||||
+1
-1
@@ -2026,7 +2026,7 @@ local function exec_cmd (cmd,arg)
|
||||
end
|
||||
end
|
||||
function winapi.make_dir(dir) return exec_cmd('mkdir',dir) end
|
||||
function winapi.remove_dir(dir,tree) return exec_cmd('rmdir '.. (tree and '/S'),dir) end
|
||||
function winapi.remove_dir(dir,tree) return exec_cmd('rmdir '.. ((tree and '/S /Q') or ''),dir) end
|
||||
function winapi.delete_file_or_dir(file) return exec_cmd('del',file) end
|
||||
function winapi.files(mask,subdirs,attrib)
|
||||
local flags = '/B '
|
||||
|
||||
Reference in New Issue
Block a user