astropy.utils
Given a path to a directory, returns the amount of free space on that filesystem.
str
The path to a directory.
Unit
Return the amount of free space as Quantity in the given unit, if provided. Default is False for backward-compatibility.
False
int
Quantity
The amount of free space on the partition that the directory is on. If unit=False, it is returned as plain integer (in bytes).
unit=False