1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Add core.get_dir_list

This commit is contained in:
ShadowNinja 2015-05-04 14:59:13 -04:00
parent 6c06330daf
commit 8f9af57314
7 changed files with 39 additions and 36 deletions

View file

@ -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)`