1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02: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)`