A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/efun/directory
Name: directory - get directory information
Syntax:
string *directory(string path)
Description:
The directory efun takes a path as argument and returns a two-
dimensional array. The first dimension has as size the number
of files in the directory. The second dimension has the following
elements:
0: name of the file (string)
1: size of the file in bytes (int)
2: modification time of the file in Unix format (int)
3: mode bits, see /include/dir.h for details.
4: 0 (int) if the file is a regular file or directory, else
it contains the path of the file where this is a link to.
Return value: see above
Examples:
directory("/*NEWS"); may return
({
({ "NEWS", 1161, 701047901, 100000, 0 }),
({ "PLYNEWS", 78, 701800762, 100000, 0 }),
({ "WIZNEWS", 609, 700748347, 100000, 0 })
})
directory("/");, directory("."); and directory("/."); all return the
contents of directory "/".
See also:
This page was generated in LPC
Imprint / Impressum