sys

sys.sys.free_disk_space

Declaration
lua
sys.free_disk_space([path])
Description
Get free disk space in megabytes.
Parameters
`path` (string, optional) — path to check (default: /var)
Return Values
`number` — free space in MB
Example
lua
local mb = sys.free_disk_space()