Function to check that an absolute path points to the specified file and to check that this file exists.
The method isValidFilePath() is located in the file file.jsxinc.
Usage
var path = "C:/myfile.txt"; var filetocheck = "myfile.txt"; if(isValidFilePath(path, filetocheck)) //Do something if this file exists and the path points to the file specified
Parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
| path | String | ![]() |
The absolute path that points to the file. |
| filename | String | ![]() |
The filename that the path needs to point to. |
Return values
| Value | Meaning |
|---|---|
| true | The path points to the specified file and the file exists on the file system. |
| false | The path does not point to the file or the file does not exist on the file system. |

