Site Tools


New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)


Function to check that an absolute path points to a specif filename and that this specific filename exists at the path specified.


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


Parameter Data type Required Description
path string Yes The absolute path that points to the file
filename string Yes 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
file/isvalidfilepath.txt · Last modified: 2020/02/26 17:10 (external edit)