How to find the size of a directory?

Here is an article from coldfusion cookbook.




   select sum(size) as size from cfDir




#numberFormat(sizeMB,",.99")#

Note the ‘recurse’ option, this will get the size of the current and all sub-directories. If you only need the size of the current directory, change recurse to false.

Post a Comment or Leave a Trackback

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*