isFileExists

isFileExists ( string path , bool[default:false] _includeDir ) : boolean

Returns if the file exists

Example




	isFileExists(path("desktop")+"file.txt"); // Checks if the file exists
isFileExists("/path/to/folder/", true); // Checks if the folder or file exists

Parameters

path

_includeDir (optional)

By default, the function returns false if path is a folder.
Set this parameter to true to return true if the file OR folder exists.