User Tools

Site Tools


uphp:functions:disk_type

disk_type

FW >= 1310

Get the file system type

Description

int disk_type ( int disk_index)

Parameters

<span style=“color:green”>int <span style=“color:blue”>disk_index<span style=“color:black”>: disk index - 0 for SD card, 1 for flash and 2 for RAM

Return Values

Disk format:

  1. FAT12
  2. FAT16
  3. FAT32
  4. 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);
 
?>
uphp/functions/disk_type.txt · Last modified: 2024/07/16 03:12 by admin