You could just do a <cfloop> through the directory listings and add the file
size to a total variable

Yours

Colin Russell
Electronic Publishing Developer
Corporate Communications Unit
University of Teesside
Middlesbrough TS1 3BA
United Kingdom

Telephone: 01642 384275
Fax: 01642 342930

Web: www.tees.ac.uk
WAP: wap.tees.ac.uk

 -----Original Message-----
From:   Bryan LaPlante [mailto:[EMAIL PROTECTED]] 
Sent:   19 March 2001 05:31
To:     CF-Server
Subject:        CFDIRECTORY.SIZE

Hey gang,
Is there any way to get cfdirectory to return the size of a direcotry. I
have tried it in a recursive loop as well as the code below. It always
returns 0. Any idea's?


<CFDIRECTORY ACTION="LIST"
             DIRECTORY="c:\inetpub\wwwroot"
             NAME="SpaceAvail">

<CFSET diskSpace = spaceAvail.size>

Bryan LaPlante
816-347-8220
[EMAIL PROTECTED]
http://www.netwebapps.com
Web Development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to