Throw a better error message if attempting to access a directory without permission.
Add path to error message.
Merge pull request #104 from childsb/bz1105694

Throw a better error message if attempting to access a directory without...