Click or drag to resize

Functions.Directory Method

Create an Array of directory and file information.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
 FUNCTION Directory(
	cFileSpec AS STRING,
	xAttr AS USUAL := NIL
View Source


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