This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
uphp:functions:disk_free_space [2017/05/11 22:45] jeff |
uphp:functions:disk_free_space [2019/03/05 09:21] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
======disk_free_space====== | ======disk_free_space====== | ||
- | < | + | < |
- | Return free space on microSD card | + | Return free space on drive |
====Description==== | ====Description==== | ||
Line 9: | Line 9: | ||
<well size=" | <well size=" | ||
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
</ | </ | ||
====Parameters==== | ====Parameters==== | ||
- | None | + | < |
====Return Values==== | ====Return Values==== | ||
- | KiloBytes (KB) available on the microSD card (Bytes/1024, rounded to an < | + | Status of the drive, 1 = unmounted and 0 = mounted. |
====Example==== | ====Example==== | ||
Line 24: | Line 25: | ||
<code php> | <code php> | ||
<? | <? | ||
- | $df=disk_free_space(); | + | $d1=disk_status(0); |
- | print(" | + | |
+ | | ||
+ | | ||
+ | if ($d2) | ||
+ | print("Flash unmounted" | ||
+ | | ||
?> | ?> | ||
</ | </ | ||
Line 33: | Line 39: | ||
[[disk_total_space()]] - Return total space on microSD card | [[disk_total_space()]] - Return total space on microSD card | ||
- | [[freemem()]] - Return | + | [[get_drive()]] - Return |
- | + | ||
- | [[freestack()]] - Return free stack space | + | |
- | [[nvram_free()]] - Return the number of bytes available in <tooltip title=" | ||