mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Refactor(tests): Use os commands in mkdir_p helper
This commit is contained in:
parent
48b2092d01
commit
b82d8faf53
@ -878,9 +878,11 @@ function module.os_kill(pid)
|
||||
or 'kill -9 '..pid..' > /dev/null'))
|
||||
end
|
||||
|
||||
-- Create directories with non exsisting intermidiate directories
|
||||
-- Create folder with non existing parents
|
||||
function module.mkdir_p(path)
|
||||
return module.meths.call_function('mkdir', {path, 'p'})
|
||||
return os.execute((iswin()
|
||||
and 'mkdir '..path
|
||||
or 'mkdir -p '..path))
|
||||
end
|
||||
|
||||
module = global_helpers.tbl_extend('error', module, global_helpers)
|
||||
|
Loading…
Reference in New Issue
Block a user