cfdirectory listing... Here is my problem... I am listing directorys and when
each directory is listed I want to list the contents of that directory. If you
visit my site. [url]www.timothyrubel.com[/url] you will see that I am able to create a
list of directorys and to list the contents of each directory individually but
how can I do this so that the contents of each folder is generated when that
folder is selected? -Tim

<cfset thisPath = ExpandPath("upload/")>
<cfset thisFolder = GetDirectoryFromPath(thisPath)>
<cfset site = ("http://timothyrubel.com/upload/")>
<cfdirectory directory="#thisFolder#" name="test" action="list" sort="name
ASC, size DESC">
<cfquery dbtype="query" name="dirsOnly">
SELECT * FROM test WHERE TYPE='Dir'</cfquery>

<cfoutput> <cfloop query="dirsOnly"> <a href="#site##dirsOnly.name#"
class="style1">#dirsOnly.Name#</a><br>
</cfloop>
</cfoutput>


<cfset thisPhoto = ExpandPath("Images/intranet/")>
<cfset photo = GetDirectoryFromPath(thisPhoto)>
<cfset root = ("http://timothyrubel.com/Images/intranet/")>
<!--- <cfset photo = ("C:\Inetpub\wwwroot\timothyrubel\www\Images\intra net")>
--->
<cfdirectory directory="#photo#" name="dirlist" action="list"
sort="datelastmodified desc">

<cfquery dbtype="query" name="getimages">
SELECT * From dirlist
ORDER BY Name
</cfquery>
<html>

<cfoutput>
<cfloop query="getimages"> <a href="#root##getimages.Name#"
class="style1"><img src="#root##getimages.Name#">#getimages.Name#</a> <br>
</cfloop>
</cfoutput>