I need to generate a file list from a disk volume. Some of the directories (all hidden directories under the root directory) have strange permissions that causes find to complain.
I try to exclude all these paths, but one directory still complains:
find . -type f -not -path './.*/*' find: ./.DocumentRevisions-V100: Permission denied
The rights are like this (set so by the operating system, so I assume they shouldn't be messed with).
d--x--x--x root wheel .DocumentRevisions-V100
How do I change the
find statement to effectively omit all the hidden directories as to not complain. (I do not want to do
2>/dev/null as I want to know about other problems).