paths that aren't writable by the current user. This prevents
Permission denied errors from being triggered later when trying
to scan subdirectories that are inaccessible.
svn path=/main/trunk/; revision=8726
procount=0
for x in config_protect:
x = os.path.join(target_root, x.lstrip(os.path.sep))
+ if not os.access(x, os.W_OK):
+ # Avoid Permission denied errors generated
+ # later by `find`.
+ continue
try:
mymode = os.lstat(x).st_mode
except OSError: