I have the following code below. What I would like to do is get a count of
all the directories ONLY.
I'm using the "recordCount" buts it's returning all directories and files.
How can I get a count of just the directories?
<cfparam name="dir" default="d:\">
<cfdirectory action="LIST" directory="#dir#" name="dirlist">
<cfform action="index.cfm" method="GET" name="list">
<cfoutput query="dirlist">
<cfif type eq "dir">
<cfif left(name,1) neq ".">
<cfif dirlist.name is not "usr" and
dirlist.name is not "misc" and
dirlist.name is not "RECYCLER">
<cfset RowCheck = #dirlist.currentRow#>
#RowCheck#<br>
<table border="0" cellpadding="0"
cellspacing="0" width="100%"
height="20">
<tr height="20">
<td>#indent#</td>
<td width="17"
height="20"> </td>
<td width="100%"
height="20"><a
href="#cgi.script_name#?dir=#URLEncodedFormat(dir)##URLEncodedFormat(name)#\"
class="dirlinks" alt="#name#">#name#</a></td>
</tr>
</table>
</cfif>
</cfif>
</cfif>
</cfoutput>
</cfform>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists