bundles / astropy 7.0.1 / astropy / io / fits / file / _File / _overwrite_existing
function
astropy.io.fits.file:_File._overwrite_existing
source: /astropy/io/fits/file.py :505
Signature
def _overwrite_existing ( self , overwrite , fileobj , closed ) Summary
Overwrite an existing file if overwrite is True, otherwise raise an OSError. The exact behavior of this method depends on the _File object state and is only meant for use within the _open_* internal methods.
Aliases
-
astropy.io.fits.convenience._File._overwrite_existing