Zum Hauptinhalt springen

List directory

Anatomy

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

Description: 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

Example

<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
-->