{ } Raw JSON

bundles / astropy latest / astropy / utils / data / check_free_space_in_dir

function

astropy.utils.data:check_free_space_in_dir

source: /astropy/utils/data.py :1112

Signature

def   check_free_space_in_dir ( path size )

Summary

Determines if a given directory has enough space to hold a file of a given size.

Parameters

path : str

The path to a directory.

size : int or `~astropy.units.Quantity`

A proposed filesize. If not a Quantity, assume it is in bytes.

Raises

: OSError

There is not enough room on the filesystem.

Aliases

  • astropy.utils.data.check_free_space_in_dir