How to find the size of a directory?
Friday, March 31st, 2006Here 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.