Table of Contents

disk_status

WMPRO, WMMINI FW >= 1.55 WMMEGA FW >= 2.0 WM2 FW >= 3.0

Return mount status of a drive

Description

int disk_status ( int $drive)

Parameters

$drive: 0=sd card, 1=internal flash (M2 only)

Return Values

Status of the drive, 1 = unmounted and 0 = mounted.

Example

<?
  $d1=disk_status(0);
  if ($d1) 
    print("MicroSD card unmounted"); 
  $d2=disk_status(1);
  if ($d2) 
    print("Flash unmounted"); 
 
?>

See Also

disk_total_space() - Return total space on microSD card

get_drive() - Return boot drive