Attempt to open a directory should return EISDIR.