Hi Peter, There is at least one "CF_DU" (as in the unix 'du' - disk usage) that simple recursively traverses the directory structure and adds up all the file sizes. You could write it yourself that way, but it is pretty ugly and very time consuming when the file count gets largish.
Alternatively if it's a windows platform you can use my cfx_diskspace (http://www.xilo.com/downloads) to find out the amount of free space. If there's disk quotas, it will also tell how much space left for the user. (now I do not recall if you can pass the user credentials to the tag or if it just accesses as the cf_exec user - been a wile since I looked) but if it's just total available free space, it will do the hjob for you maybe. Cheers, Mike Everest. +----------------------------------------------------------------+ | SOAP is the glue! Hook up your server directly to your bank. | | Connect to VeriPay xServ, the Australian Payments Web Service. | | Reliable, Secure, FAST: http://www.xilo.com/xserv | +----------------------------------------------------------------+ > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-cfaussie- > [EMAIL PROTECTED] On Behalf Of Peter Mount > Sent: Tuesday, 18 January 2005 8:38 PM > To: CFAussie Mailing List > Subject: [cfaussie] Determining free space on web server > > Hello > > Is there a function to determine the amount of free space (or space > used) on the web server? For example, just say I wanted to check the > amount of space I'm using with my own domain name (or even in localhost) > without having to check it in an ftp program. I'm looking for a function > that I can use in my demo app that will display the figure on the app's > web pages. > > Thanks > > Peter Mount > [EMAIL PROTECTED] > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to leave-cfaussie- > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
