Exists(
     path:path,
     [string:flags]
)
bool

Arguments

path

Path to test for existence of.

flags

Optional. The optional flags are:

wSupport wildcards in the final path component

Return value

True if the specified path exists, otherwise false.

Description

Tests if the specified path exists (or optionally, if any file or folder matching the wildcard exists in the specified path).

Example:

if (Exists("c:\\log\\error*.txt", "w")) { ... }