Cope with file existing and not existing.