get_free_space_in_dir¶

astropy.utils.data.get_free_space_in_dir(path)[source]

Given a path to a directory, returns the amount of free space (in bytes) on that filesystem.

Parameters
pathstr

The path to a directory

Returns
bytesint

The amount of free space on the partition that the directory is on.