add io::Device::mkdir

This commit is contained in:
MihailRis
2025-02-04 14:10:23 +03:00
parent f8d0ded70e
commit 1ec8f89599
6 changed files with 37 additions and 9 deletions
+1 -1
View File
@@ -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) {