ibec_DirectoryExists

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

Syntax

 function ibec_DirectoryExists(Name : string) : Boolean;

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.

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

See also:
ibec_FileExists

back to top of page
<< ibec_DeleteFile | IBEBlock | ibec_SetCurrentDir >>