Try this..
index.cfm
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<cfset basedir = "d:\sites\bearbox\documentation\">
<cf_dir basedir = "#basedir#">
<cfdump var="#request.filelist#">
</body>
</html>
---------------
dir.cfm
---------------
<cfparam name="request.filelist"
default="#QueryNew('Filename,FileDate,Size')#">
<cfdirectory action="" directory="#attributes.basedir#" name="list">
<cfloop query="list">
<cfif type is "File">
<cfscript>
QueryAddRow(request.filelist);
QuerySetCell(request.filelist,"FileName","#attributes.basedir##name#");
QuerySetCell(request.filelist,"FileDate","#DateLastModified#");
QuerySetCell(request.filelist,"Size","#Size#");
</cfscript>
<cfelse>
<cfif NOT (name is "." or name is "..")>
<cf_dir basedir = "#attributes.basedir##name#\">
</cfif>
</cfif>
</cfloop>
---------------
That works well, but if you want more speed I have a java tag I wrote,
just ask if you need it.
Craig.
-----Original Message-----
From: Scott Wilhelm [mailto:[EMAIL PROTECTED]
Sent: 08 December 2003 15:58
To: CF-Talk
Subject: Recursive Directory Display
Would anyone know where I can find a recursive directory tag? I
just need to display all the file, folders, sub-folders & their files.
Thanks,
Scott
Scott Wilhelm
Computer Technician/Web Developer
http://www.sllboces.org <http://www.sllboces.org/>
[EMAIL PROTECTED]
Canton (Mon/Tue/Wed)
St. Lawrence-Lewis BOCES
PO Box 231, 139 State Street Road
Canton, NY 13617
P. 315-386-4504 x 164
F. 315-386-3395
Heuvelton (Thu/Fri)
Heuvelton Central School
PO Box 375, 87 Washington Street
Heuvelton, NY 13654
P. 315-344-2414 x 3651
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Recursive Directory Display Scott Wilhelm
- RE: Recursive Directory Display Jim Davis
- RE: Recursive Directory Display Craig Dudley
- RE: Recursive Directory Display Scott Wilhelm
- RE: Recursive Directory Display Craig Dudley