Previous Topic: existsDatasetNext Topic: existsInteractionRequestForm


existsFolder

The existsFolder function checks whether a folder object exists in the given path. The path can be an absolute/relative path. The relative path is relative to the process in which the script is executed.

Syntax

bExists = existsFolder(folderPath)

Arguments

folderPath (String)

Specifies the full/relative path of the folder whose existence must be verified.

Return Value

bExists (Boolean)

Returns true if the folder object exists or false if it does not.

Example

if(existsFolder(folderpath)) 
{ 
Process.mesg_folder = "Folder test exists"; 
} 
else 
{ 
Process.mesg_folder = "Folder test does not exist"; 
}