MudOSa4DGD/
MudOSa4DGD/bin/
MudOSa4DGD/data/
MudOSa4DGD/doc/
MudOSa4DGD/doc/driver/
MudOSa4DGD/doc/efun/bitstrings/
MudOSa4DGD/doc/efun/command/
MudOSa4DGD/doc/efun/communication/
MudOSa4DGD/doc/efun/heart_beat/
MudOSa4DGD/doc/efun/interactive/
MudOSa4DGD/doc/efun/inventory/
MudOSa4DGD/doc/efun/living/
MudOSa4DGD/doc/efun/mappings/
MudOSa4DGD/doc/efun/strings/
MudOSa4DGD/doc/efun/uid/
MudOSa4DGD/doc/funs/
MudOSa4DGD/doc/language/
MudOSa4DGD/mudlib/dgd/doc/
MudOSa4DGD/mudlib/dgd/lib/include/dgd/
MudOSa4DGD/mudlib/dgd/lib/std/
MudOSa4DGD/mudlib/dgd/lib/sys/
MudOSa4DGD/mudlib/dgd/log/
MudOSa4DGD/mudlib/log/
MudOSa4DGD/mudlib/std/include/
MudOSa4DGD/mudlib/std/obj/
NAME
	get_dir - get information about files in a directory

SYNOPSIS
	mixed **get_dir(string file)

CONFIG.H - MUDOS_GET_DIR_BEHAVIOUR
	mixed **get_dir(string file, int flag)

DESCRIPTION
	Get information about a file or files in a directory.  The return
	value is of the form

	    ({ ({ file names }), ({ file sizes }), ({ file mod times }) })

	If a file is a directory, the file size will be given as -2.
	If the last path component of the specified file can be interpreted
	as a regular expression, all files which match this regular expression
	are collected.  Otherwise, only the file itself is taken.  If no files
	match, or if the file is not present, the return value of get_dir()
	will be ({ ({ }), ({ }), ({ }) }).
	The following characters have a special meaning in a regular expression:

	    ?	    any single character
	    *	    any (possibly empty) string
	    [a-z]   any character in the range a-z
	    [^a-z]  any character not in range a-z
	    \c	    the character c, not interpreted as having a special
		    meaning

	The files will be sorted by file name.
	Only as many files as specified by status()[ST_ARRAYSIZE], with
	ST_ARRAYSIZE defined in the include file <status.h>, will be collected.

	This_object() will also need read access to the path.

	If config.h defines MUDOS_GET_DIR_BEHAVIOUR, the behaviour of
	MudOS get_dir() will be simulated, but the structure of returnvalue
	will not. It is recommended to use the native DGD get_dir() without
	flag argument out of simplicity. The MudOS version is very confusing.
	Get_files() will create a listing of files as with get_dir(, 1).

SEE ALSO
	efun/get_files, kfun/make_dir, kfun/remove_dir