/
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,
Related content
getScriptPaths
getScriptPaths
More like this
addScriptPath
addScriptPath
More like this
getFileLocation
getFileLocation
More like this
setScriptPaths
setScriptPaths
More like this
fileChooser
fileChooser
More like this
deleteScriptPath
deleteScriptPath
More like this