diff options
Diffstat (limited to 'core/src/xmake/os/mkdir.c')
| -rw-r--r-- | core/src/xmake/os/mkdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/xmake/os/mkdir.c b/core/src/xmake/os/mkdir.c index 19507b5aa..9f8b3399d 100644 --- a/core/src/xmake/os/mkdir.c +++ b/core/src/xmake/os/mkdir.c @@ -42,10 +42,11 @@ tb_int_t xm_os_mkdir(lua_State *lua) { // os.mkdir(path) tb_file_info_t info = { 0 }; - if (!tb_file_info(path, &info) || (info.type != TB_FILE_TYPE_DIRECTORY)) + if (!tb_file_info(path, &info) || (info.type != TB_FILE_TYPE_DIRECTORY)) { lua_pushboolean(lua, tb_directory_create(path)); - else + } else { lua_pushboolean(lua, tb_true); + } return 1; } |
