User Tools

Site Tools


uphp:functions:disk_status

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:disk_status [2019/03/05 09:25]
admin created
uphp:functions:disk_status [2021/09/13 05:57]
Line 1: Line 1:
-======disk_status====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.55</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WM2 FW >= 3.0</badge> 
- 
-Return mount status of a drive 
- 
-====Description==== 
- 
-<well size="sm"><html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">disk_free_space ( <span style="font-size:125%;color:green">int <span style="color:blue">$drive<span style="color:black">) 
-</html></well> 
- 
-====Parameters==== 
- 
-<html><b><span style="color:blue">$drive<span style="color:black"></b></html>:  0=sd card, 1=internal flash (M2 only) 
- 
- 
-====Return Values==== 
- 
-Status of the drive, 1 = unmounted and 0 = mounted.   
- 
-====Example==== 
- 
-<code php> 
-<? 
-  $d1=disk_status(0); 
-  if ($d1)  
-    print("MicroSD card unmounted");  
-  $d2=disk_status(1); 
-  if ($d2)  
-    print("Flash unmounted");  
-     
-?> 
-</code> 
- 
-====See Also==== 
- 
-[[disk_total_space()]] - Return total space on microSD card 
- 
-[[get_drive()]] - Return boot drive 
- 
  
uphp/functions/disk_status.txt · Last modified: 2021/09/13 05:57 (external edit)