The filename part of the path may contain '*' or '?' as wildcards: every '*' matches an arbitrary amount of characters (or just itself). Thus get_dir ("/path/*") would return an array of all files in directory "/path/", or just ({ "/path/*" }) if this file happens to exist.
The optional second argument mask can be used to get information about the specified files.
0x00 get_dir returns an emtpy array (not very useful)
0x01 put the file names into the returned array.
0x02 put the file sizes into the returned array.
0x04 put the file modification dates into the returned
array.
0x20 if this mask bit is set, the result of get_dir() will
_not_ be sorted.
The values of mask can be added together.