DirectoryExists

From SCAR Divi Manual
Revision as of 12:54, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function DirectoryExists(Directory: string): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Retu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function DirectoryExists(Directory: string): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

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

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