file-exists()
This function checks if a file or directory (or a special file or named pipe on Unix systems) exists.
The optional parameters b to e allow further checks.
The function returns true if all checks were successful.
Parameters
Parameter |
Description |
a |
Relative (to the installation directory of the Integration Server) or absolute path of the directory or file. Example: ./conf or ./conf/myfile.txt |
b |
(optional) true to check if the file/directory is readable. Default: false. |
c |
(optional) true to check if the file/directory is writeable. Default: false. |
d |
(optional) Type check. The key words (f, file, datei) can be used to check for files. The keywords (d, directory, folder, verzeichnis) check for directories. You can combine both, separated by comma, pipe or blank. Example: The value d|f checks if it is a directory or a file. |
e |
(optional) Last modification check. You can specify Dates, Timestamps or now-<milliseconds>. The value now-60000, for example, checks if the file or directory has been modified within the last minute. |