2.14.2.5 dir

Brief Information

List all script files and X-functions in current working directory

Additional Information

X-Function not designed for Auto GetN Dialog.

Command Line Usage

1. dir;

2. dir pattern:="*.txt";

3. dir pattern:="a?c.*";

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
pattern

Input

string

<unassigned>

pattern to match, such as empty, *, abc (same as abc.*), a*, a*.h, *.oxf, or a?c (same as a?c.*)

dir with no argument is special and lists only runnable files like oxf and ogs, as well as directories.

cwd

Output

string

<unassigned>

recieve the current working directory

Description

Displays a list of files and subdirectories in current working directory.

Related X-Functions