Difference between revisions of "DirectoryExists"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function DirectoryExists(Directory: string): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Retu...")
 
(Description)
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns [[true]] if a directory at the path specified by '''FileName''' exists.
+
Returns [[true]] if a directory exists at the path specified by '''Directory'''.
  
 
==Example==
 
==Example==

Latest revision as of 13:55, 1 July 2011

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