getTotalSpace

Returns the total disk space or in-memory space available for an application.

getTotalSpace(path); → returns numeric

Argument Reference

path string
Required

path to the hard drive or for in memory file system.

Examples
Sample code invoking the getTotalSpace function

the in-memory file system memory set in cfadmin and should return that.

<cfset totalRMSSpace = getTotalSpace('ram')>
<cfoutput>total app ram memory: #decimalFormat(totalRamSpace)/(1024 * 1024)# mb</cfoutput>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub