DirectoryExists

From SCAR Divi Manual
Jump to: navigation, search

Definition

function DirectoryExists(Directory: string): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Returns true if a directory exists at the path specified by Directory.

Example

begin
  if DirectoryExists(LogsPath) then
    WriteLn('The logs folder exists in your SCAR Divi workspace');
end.

Output:

scar.exe exists in SCAR's root folder

See Also