Ensure ENOENT is handled, and assumes file.