Zum Hauptinhalt springen

File exists

Anatomy

<file:exists var="var" filename="string"/>

Description: FILE:EXISTS checks whether a file or directory exists and returns the canonicalized absolute filename if applicable.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name file:exists
filenamestringFilename/URL file:exists

Results:

BindingTypePredicate
varN/A

Examples

Example

<file:exists var="exists" filename="./test/ixml_non_existing.inc"/>

<is var="exists" type="false">
<output>File does not exist!</output>
</is>

<!-- File does not exist! -->