NAME
get_dir - return an array of filenames in a directory
SYNOPSIS
string *get_dir(string path)
DESCRIPTION
This function returns the names of all files contained in the
specified directory. If 'path' doesn't end with '/' either an
empty array is returned if nothing with that name exists or
an array containing the name if it exists. If 'path ends with
'/' 0 is returned if 'path' isn't a directory else the contents
of that directory as an array is returned. It is possible to
use wildcards like:
get_dir("/a*") Would return all files starting with
'a' in the muds root directory.
NOTE
The function is subject to the rules defined by the function
`valid_read()'.
Help topics available:
| _acl_debug | _acl_get | _acl_str2num | _acl_num2str | _file_stat |
| cat | ed | file_size | get_dir | log_file |
| mkdir | read_bytes | read_file | rm | rmdir |
| tail | write_bytes | write_file |
You are guest number 157 since December 2019.
This file was last modified: June 2000.