Failing test for #267, readdir on file path should error