<!--- 
 Filename: MultiDirectory2.cfm
 Created by: Nate Weiss (NMW)
 Purpose: Displays a list of all GIF and JPEG files in images folder
--->

<!--- Directory to scan for images --->
<cfset dir = expandPath("../images")>

<!--- Get GIF and JPG file listing, via custom tag --->
<cf_GetDirectoryContents directory="#Dir#" filter="*.gif;*.jpg" name="getAll">

<html>
<head><title>Images Folder</title></head>
<body>
<h2>Images Folder</h2>

<!--- Display all files together as a list --->
<cfoutput>
 <p>There are #getAll.recordCount# images in #dir#:<br>
 
 <cfloop query="getAll">
 <p>
 #currentRow#. #getAll.Name#<br>
 <img src="../images/#Name#"><br>
 </p> 
 </cfloop> 
</cfoutput>

</body>
</html>
