WMPRO, WMMINI FW >= 1.55 WMMEGA FW >= 2.0 WM2 FW >= 3.0
Return total space on a drive
$drive: 0=sd card, 1=internal flash (M2 only)
KiloBytes (KB) total for the microSD card (Bytes/1024, rounded to an integer)
<? $dt=disk_total_space(0); print("The card has ".$dt." KiloBytes total."); ?>
disk_total_space() - Return free space on microSD card
freemem() - Return free memory space
freestack() - Return free stack space
nvram_free() - Return the number of bytes available in NVRAM