Get disk usage information like how much space is available, free, and used.
Documentation can be found here and there is a short example of how to use this library.
This works for Windows, MacOS, Linux and FreeBSD although there may some minor variability between what this library reports and what you get from df
.