======disk_type======
FW >= 1310
Get the file system type
====Description====
int
disk_type ( int disk_index)
====Parameters====
int disk_index: disk index - 0 for SD card, 1 for flash and 2 for RAM
====Return Values====
Disk format:
- FAT12
- FAT16
- FAT32
- EXFAT
====Example====
$dt=disk_type(0);
if ($dt==1)
$type = "FAT12";
if ($dt==2)
$type = "FAT16";
if ($dt==3)
$type = "FAT32";
if ($dt==4)
$type = "EXFAT";
print("Your SD card is formatted as ".$type);
?>