astropy.utils
Determines if a given directory has enough space to hold a file of a given size.
str
The path to a directory.
int
Quantity
A proposed filesize. If not a Quantity, assume it is in bytes.
OSError
There is not enough room on the filesystem.