latest reactions

David Levin
Does the trim still work if the form fie …
mal
as long as the join keys are same in eac …
Tarida
I am using ipinfodb.com to redirect the…
David Levin
Good stuff. For those interested in a UD …
PtcBux
oh Wilbur Gans wrote thank you so much…

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

CF911: New Adobe document about #ColdFusion security hotfixes: required reading, I'd sayColdFusion Summit AnnouncedAdobe Announces ColdFusion Summit 2013Circular Thumbnails with ColdFusion / CSSColdFusion Dev needed: South FloridaeBay Looking for a ColdFusion DeveloperFace Cropped Thumbnails with ColdFusionUsing A Dynamic Column Name With ValueList() In ColdFusionColdFusion LockdownFace Detection with ColdFusion and JviolajonesFace Detection with JJIL Library and ColdFusion (Experiment)Face Detection with JJIL Library and ColdFusion (Experiment)Viviotech joins as a hosting provider!CFUnit launches its production release!CFUnit v0.5.2 Released

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2013 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

How can I display a recursive directory listing?

With the following code you get a directory view of the directory and all sub-dirs of the current directory. Name the file recursive.cfm otherwise it won't work

Only show directory tree:
<cfparam name="attributes.currentDir" default="#GetDirectoryFromPath(GetTemplatePath())#">
<cfdirectory directory="#attributes.currentDir#" action="list" name="getDir" sort="type">
<cfoutput query="getDir">
 <cfif not compareNoCase(type,"dir")>
  #name#<br>
  <blockquote>
  <cfmodule template="recursive.cfm" currentDir="#attributes.currentDir##name#\">
  </blockquote>
 </cfif>
</cfoutput>




Show directory and files:
<cfparam name="attributes.currentDir" default="#GetDirectoryFromPath(GetTemplatePath())#">
<cfdirectory directory="#attributes.currentDir#" action="list" name="getDir" sort="type">
<cfoutput query="getDir">
 <cfif not compareNoCase(type,"dir")>
  <strong>#name#</strong><br>
  <blockquote>
  <cfmodule template="recursive.cfm" currentDir="#attributes.currentDir##name#\">
  </blockquote>
 <cfelse>
  #name#<br>
 </cfif>
</cfoutput>

9571 viewed | Your opinion...  | del.icio.us | Digg it | Tjarko @ 24/11/02 0:00 cet


Reactions:

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!