get_free_space_in_dir#
- astropy.utils.data.get_free_space_in_dir(path, unit=False)[source]#
Given a path to a directory, returns the amount of free space on that filesystem.
- Parameters:
- path
str,os.PathLike The path to a directory.
- unitbool or
Unit Return the amount of free space as Quantity in the given unit, if provided. Default is
Falsefor backward-compatibility.
- path
- Returns: