diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-05-04 14:59:13 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-05-16 18:33:22 -0400 |
commit | 8f9af57314f71aae1cc77e13f9996e13015d776d (patch) | |
tree | 6d939e4d54ef864e9463adce51eed14c73d7e61a /doc | |
parent | 6c06330daf04ed1c390131755b64338ca7d79a7e (diff) | |
download | minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.gz minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.bz2 minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.zip |
Add core.get_dir_list
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 5 | ||||
-rw-r--r-- | doc/menu_lua_api.txt | 8 |
2 files changed, 7 insertions, 6 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)` diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index e5ba46d4c..76c329de6 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -31,8 +31,8 @@ core.start() core.close() Filesystem: -core.get_scriptdir() -^ returns directory of script +core.get_builtin_path() +^ returns path to builtin root core.get_modpath() (possible in async calls) ^ returns path to global modpath core.get_modstore_details(modid) (possible in async calls) @@ -59,10 +59,6 @@ core.get_gamepath() (possible in async calls) ^ returns path to global gamepath core.get_texturepath() (possible in async calls) ^ returns path to default textures -core.get_dirlist(path,onlydirs) (possible in async calls) -^ path to get subdirs from -^ onlydirs should result contain only dirs? -^ returns list of folders within path core.create_dir(absolute_path) (possible in async calls) ^ absolute_path to directory to create (needs to be absolute) ^ returns true/false |