Click or drag to resize

Directory Function

Create an Array of directory and file information.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION Directory(
	cFileSpec AS STRING,
	xAttr AS USUAL := NIL
) AS ARRAY

Parameters

cFileSpec
Type: String
The file specification for the search. Besides a file name, this specification can include an optional drive, directory, and extension. The file name and extension can include the standard wildcard characters (* and ?). If you do not specify a drive and directory, the Windows defaults are used.
xAttr (Optional)
Type: USUAL
Specifies inclusion of files with special attributes in the returned information. uAttributes can be a string or a numeric.

Return Value

Type: ARRAY
An array of subarrays, with each subarray containing information about each file matching cFileSpec.
See Also