/
pathExists
pathExists
Description
Determines whether a file or folder exists on the file system.
Note that all file and folder paths in Shogun Post HSL scripting use forward slashes instead of back-slashes.
Functional area
System
Command syntax
Syntax
pathExists "folderPath" |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
folderPath | string | yes | The name of the file or folder to search for. |
Flags
None
Return value
boolean
Returns true if the file or folder path specified exists on the file system.
Examples
// See if this file exists on our disk boolean $itExists = `pathExists "C:/temp/test.txt"`; print $itExists;
, multiple selections available,