Utilities.DirectoryExists Method

Applies to TestComplete 15.63, last modified on April 23, 2024
This method is obsolete. See the Remarks section below.

Description

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

Declaration

Utilities.DirectoryExists(Name)

Name [in]    Required    String    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Name

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

Result Value

True if the specified folder exists. Otherwise - False.

Remarks

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