DIR()

Top  Previous  Next

 

The DIR() function returns the contents of an operating system directory.

 

 

Format

 

DIR(pathname)

 

where

 

pathnameidentifies the operating system directory to be processed.

 

 

The DIR() function returns a dynamic array with one field per entry in the specified directory. Each field contains two items separated by value marks:

Value 1The item name.
Value 2The item type. This is F for a file or D for a directory.

 

The standard . and .. directory entries are not returned.

 

Applications should not assume that this structure will remain unchanged. Additional values may appear in future releases.