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.
System
pathExists "folderPath" |
Name | Type | Required | Comments |
---|---|---|---|
folderPath | string | yes | The name of the file or folder to search for. |
None
boolean
Returns true if the file or folder path specified exists on the file system.
// See if this file exists on our disk boolean $itExists = `pathExists "C:/temp/test.txt"`; print $itExists; |