aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-05-04 14:59:13 -0400
committerShadowNinja <shadowninja@minetest.net>2015-05-16 18:33:22 -0400
commit8f9af57314f71aae1cc77e13f9996e13015d776d (patch)
tree6d939e4d54ef864e9463adce51eed14c73d7e61a /doc/lua_api.txt
parent6c06330daf04ed1c390131755b64338ca7d79a7e (diff)
downloadminetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.gz
minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.bz2
minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.zip
Add core.get_dir_list
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
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)`