files:FileExists

Previous Next

Evaluates whether or not a file designated by a full filepath exists on the file system.

Returns a boolean.

Syntax

files:FileExists( filepath )

 

Example

   <pc:if-then test="files:FileExists(path:Combine($appdir, 'USAUTH.con'))">
      <pc:ConsoleWrite>USAUTH.con file found.</pc:ConsoleWrite>
   </pc:if-then>