exists
Determines if a file or directory exists.
Arguments
- exists
- The relative path to the file or directory. This path will be mapped relative to the application root.
Remarks
This condition allows you to take action based on the existence of a file or directory.
Examples
To forbid access to a URL if the “forbidden.txt” file exists, use:
<if exists="/forbidden.txt" /> <forbidden /> </if>