GetTotalSpace()
Returns the size of the partition named by this abstract pathname.
GetTotalSpace( file=object );
Returns: Numeric
| Argument | Description |
|---|---|
|
file
object,
required
|
edit
file path Alias: filepath, path |
Examples
edittry{
totalDiskSpace = getTotalSpace("c:");
totalRAMSpace = getTotalSpace("c:");
writeOutput('Total Hard Disk Space : ' & DecimalFormat(totalDiskSpace / (1024 * 1024 * 1024)));
writeoutput('<br>');
writeOutput('Total Application RAM Memory : ' & DecimalFormat(totalRAMSpace / (1024 * 1024)));
}
catch(any e){
writeOutput(cfcatch.message);
writeOutput(cfcatch.detail);
}
See also
- File handling
- Lucee Server related Tags, Functions and Guides
- GetFreeSpace()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)