<cfdirectory
name="getdirs"
directory="#attributes.dir#"
action="list"
sort="size ASC"
>
<cfloop query="getdirs">
<cfif (type eq "Dir") AND (name neq ".") AND
(name neq "..")>
<cfset dir =
"#attributes.dir#\#name#">
<cf_directorysize dir="#dir#">
<cfelse>
<cfif type eq "File">
<cfset request.filecount
= request.filecount + 1>
<cfset request.filesize
= request.filesize + size>
</cfif>
</cfif>
</cfloop>
This tag works for smaller directorys (ie 35 folders (nested 3 deep)
with 114 files) but it seems to start to lose count on bigger
directories IE 200 + folders and 1000 + files
Any ideas.
All I need is the size of all the files in the folders and sub folders.
I tried the filesystem COM object but it didn't like working across the
network shares.
Any idea on that would help too!
Kevin
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists