Zum Hauptinhalt springen

List directory

XML
<file:listdir var="var" dirname="string"/>

<file:listdir /> lists the filenames of all files within a directory.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name file:listdir
dirnamestringDirectory name/URL file:listdir

Results

BindingTypePredicate
vararrayno-result-propagation

Examples

XML
<file:listdir var="files" dirname="./test"/>

<foreach var="files" var_value="filename">
<if value1="$filename" func="$" value2=".inc">
<output>$filename&n;</output>
</if>
</foreach>

<!--
ixml.inc
ixml_link.inc
-->