mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add io::Device::mkdir
This commit is contained in:
parent
f8d0ded70e
commit
1ec8f89599
6 changed files with 37 additions and 9 deletions
|
|
@ -98,7 +98,7 @@ static int l_length(lua::State* L) {
|
|||
|
||||
static int l_mkdir(lua::State* L) {
|
||||
io::path path = lua::require_string(L, 1);
|
||||
return lua::pushboolean(L, io::create_directories(path)); // FIXME
|
||||
return lua::pushboolean(L, io::create_directory(path));
|
||||
}
|
||||
|
||||
static int l_mkdirs(lua::State* L) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue