From the NannyMUD documentation
2000-12-09
NAME
get_dir - Return an array of filenames in a directory.SYNTAX
string *get_dir(string path)DESCRIPTION
This function returns the names of all files contained in the specified directory. If the specified directory is a file, the name of that file is returned in an array. It is possible to use wildcards, like '*'.RETURN VALUES
0 - There is no such directory or file.({}) - The directory is empty.other - The specified file or the contents of the directory.EXAMPLE
get_dir("/a*") - Would return all files starting with 'a' in the muds root directory.EXAMPLE
get_dir("/obj/player.c") - Would return ({ "player.c" }).NOTE
The function is subject to the rules defined by the function `valid_read()'.NOTE
Use file_size() to check if a file exists to avoid acl errors.