--- a/pngtile/image.py Fri Oct 03 21:08:38 2014 +0300 +++ b/pngtile/image.py Fri Oct 03 21:11:40 2014 +0300 @@ -27,6 +27,10 @@ # show dirs if os.path.isdir(path): + if not os.access(path, os.R_OK): + # skip inaccessible dirs + continue + yield name + '/' # examine ext