Failing test for #267, readdir on file path should error
Fix for readdir and non-dir paths
Merge pull request #268 from humphd/issue267

Fix #267, readdir on file path should error