DIRECTORY( ) Function

Returns true (.T.) if the specified directory is found on disk.

DIRECTORY(cDirectoryName)

Return Values

Logical

Parameters

  • cDirectoryName
    Specifies the name of the directory to locate. If you do not include an absolute path for the directory you specify, Visual FoxPro searches for the directory relative to the Visual FoxPro default directory.

Remarks

The Visual FoxPro default directory is specified with SET DEFAULT. DIRECTORY( ) returns .F. for directories with Hidden or System attributes.

See Also

FILE( ) | GETDIR( ) | GETFILE( ) | SET DEFAULT