Download Monk Developer`s Reference

Transcript
Chapter 13
System Interface Functions
directory
Syntax
(directory pathstring)
Description
Returns the contents of the specified directory as a vector.
Parameters
Name
pathstring
Type
string
Description
The full or partial path of the directory. Will use the load-path value
if a partial path is given.
The Monk load-path is an internal Monk variable that is
automatically set. The load-path is populated in part by the
SharedExe and SystemData values in the .egate.store file. See the
e*Gate Integrator System Administration and Operations Guide for
more information about this file.
Return Value
vector
A vector of strings. The strings (vector elements) are the file names of the files and
subdirectories found in the specified directory.
Boolean
Returns #f if the directory does not exist.
Examples
(directory "data")
=>
#(. .. ETDs FileIn.txt)
(directory "c:\test")
NoMoreDocs.txt)
=>
#(. .. Doc1.txt Doc2.txt
(directory "bogus")
=>
#f
Monk Developer’s Reference
290
SeeBeyond Proprietary and Confidential