in reply to Re: opendir in file find
in thread opendir in file find

I don't think that is the question he was asking... I was under the impression that by being able to "search" a directory, he meant being able to list its contents. Having execute permissions on a directory makes you able to "cd" through a directory, but does not let you list its contents. As such, a more appropriate test is being able to read the directory, and thus the file test operator he wants is -r.