diff options
author | Elijah Duffy <enduffy2014@outlook.com> | 2021-11-10 10:10:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 19:10:20 +0100 |
commit | cbf658f83d206bf340ab4aa8eab02b058e9b293f (patch) | |
tree | 88d88074d7c8f229c7d393746747ad67d29860b9 /src/script/lua_api/l_util.h | |
parent | 6db914780ed6e27d9876763d561ea0daafe01f4f (diff) | |
download | minetest-cbf658f83d206bf340ab4aa8eab02b058e9b293f.tar.xz |
Lua API: Add `rmdir`, `cpdir` and `mvdir` (#9638)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Diffstat (limited to 'src/script/lua_api/l_util.h')
-rw-r--r-- | src/script/lua_api/l_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/lua_api/l_util.h b/src/script/lua_api/l_util.h index 314e92f5c..fcf8a1057 100644 --- a/src/script/lua_api/l_util.h +++ b/src/script/lua_api/l_util.h @@ -80,6 +80,15 @@ private: // mkdir(path) static int l_mkdir(lua_State *L); + // rmdir(path, recursive) + static int l_rmdir(lua_State *L); + + // cpdir(source, destination, remove_source) + static int l_cpdir(lua_State *L); + + // mvdir(source, destination) + static int l_mvdir(lua_State *L); + // get_dir_list(path, is_dir) static int l_get_dir_list(lua_State *L); |