This shows you the differences between two versions of the page.
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====== | ||
- | |||
- | < | ||
- | |||
- | Return mount status of a drive | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameters==== | ||
- | |||
- | < | ||
- | |||
- | |||
- | ====Return Values==== | ||
- | |||
- | Status of the drive, 1 = unmounted and 0 = mounted. | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $d1=disk_status(0); | ||
- | if ($d1) | ||
- | print(" | ||
- | $d2=disk_status(1); | ||
- | if ($d2) | ||
- | print(" | ||
- | | ||
- | ?> | ||
- | </ | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[disk_total_space()]] - Return total space on microSD card | ||
- | |||
- | [[get_drive()]] - Return boot drive | ||
- | |||