AFAIK, it would be difficult to skip them through code using any direct option. I looked for something similar if already discussed earlier and found this answer by SA:
How to display accessible files only and skip inaccessible file?[
^]
It looks like, you don't have a direct way to go through all skipping inaccessible folders by any setting. You need to handle those specific errors in a try-catch and move on. Not a good way but looks like the possible way to get you seek.