isAvailable

isAvailable(): Boolean;

The isAvailable method of the FileFolder class returns true if the file folder exists.

The following example shows the use of the isAvailable method.

vars
   diskFolderObj : FileFolder;
begin
   create diskFolderObj transient;
   diskFolderObj.fileName := "E:\";
   if diskFolderObj.isAvailable() then
       write true;
   else
       write false;
   endif;
end;