ibec_DirectoryExists

Call ibec_DirectoryExists to determine whether the directory specified by the Name parameter exists.

Description

Call ibec_DirectoryExists to determine whether the directory specified by the Name parameter exists. If the directory exists, the function returns True. If the directory does not exist, the function returns False.

If a full path name is entered, ibec_DirectoryExists searches for the directory along the designated path. Otherwise, the Name parameter is interpreted as a relative path name from the current directory.

Syntax

  function ibec_DirectoryExists(Name : string) : Boolean;

Example

execute IBEBlock
returns (cout varchar(100))
as
begin
   if (ibec_DirectoryExists('C:\Temp\')) then
      cout = 'Specified directory exist!';
    else
      cout = 'Specified directory does NOT exist!';
  suspend;
end