-f and -d. Checking if a file or directory exists

-f filename-checks if specified file exists on disk
-d dirname-checks if specified directory exists on disk

The operators check if the file/directory exist in specified location and return bool value (true/false).

Example
^if(-f "/index.html"){
   there is a mainpage
}{
   there is no mainpage
}



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 04.04.2016