From 8f9af57314f71aae1cc77e13f9996e13015d776d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 4 May 2015 14:59:13 -0400 Subject: Add core.get_dir_list --- doc/lua_api.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/lua_api.txt') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0e1dc487f..e1ee42b94 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1704,6 +1704,11 @@ Helper functions * `minetest.mkdir(path)`: returns success. * Creates a directory specified by `path`, creating parent directories if they don't exist. +* `minetest.get_dir_list(path, [is_dir])`: returns list of entry names + * is_dir is one of: + * nil: return all entries, + * true: return only subdirectory names, or + * false: return only file names. ### Logging * `minetest.debug(line)` -- cgit v1.2.3