From the NannyMUD documentation

LAST CHANGE

2001-02-07

FUNCTION


NAME

        get_fso - Get dirs/files/both in a dirtree.

LOCATION

	/obj/support

SYNTAX

        string *get_fso(string path, int flag)

DESCRIPTION

        Given an absolute path, this function will return an array with File
	System Objects (FSO). Exactly what is returned depends on the flag:
	flag	returned
	0	All files and directories in and below the directory given.
	1	All files in and below the given directory.
	2	All directories in and below the given directory.

NOTE

	Be careful with the use of this; you can easily end up experiencing the
	dreadful 'too long evaluation' error, and perhaps also the dreaded
	'too deep recursion' error.

EXAMPLE

	Files and dirs:
	  files = get_fso("/open/info");
	  files = get_fso("/open/info", 0);

	Files:
	  files = get_fso("/open/info", 1);

	Dirs:
	  files = get_fso("/open/info", 2);