Utilities.DirectoryExists Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


The Utilities.DirectoryExists method returns True if the folder with the specified name exists. Otherwise - False.



Name [in]    Required    String    
Result Boolean

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the path to the directory whose existence should be checked.

Result Value

True if the specified folder exists. Otherwise - False.


If Name specifies the full path to the desired folder, the function checks this path. Otherwise, the path is considered relative to the current folder (that is, the folder returned by the GetCurrentDir method).

This method is obsolete. It is supported for backward compatibility only. To check if a specific folder exists on the disk, use the aqFileSystem.Exists method.

See Also

Exists Method
CreateFolder Method
GetCurrentFolder Method
Exists Method

Highlight search results