Extended file-error handling