skip trying to open directories
Merge pull request #1 from ttezel/patch-1

skip trying to open directories