# HG changeset patch # User Tero Marttila # Date 1412359900 -10800 # Node ID e9eef49f4d576c0a7ce2ee9b5e5c96de4e05f935 # Parent 55f3d3bc95d36aa5bd3bed3c3ffb76953f64f311 pngtile.image: skip inaccessible dirs diff -r 55f3d3bc95d3 -r e9eef49f4d57 pngtile/image.py --- 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