I'm trying to do a search for all image files more than X by Y pixels in directory /Users/ (this is Mac OS, and yes, a 'dangerous' search, I know.)

```
int main( ){
  FILE *pf;
   pf = popen("cd ~/ ; find . -type f '!' '(' -path ".*" ')' -print0 | xargs -0 file | grep 'image data'","r"); 
 }

```

This gives the error `find: ./.fseventsd: Permission denied`. **I need to skip any directories starting with** `.` but can't seem to get it to work using the above `! ( -path ".*" )` command.

Lots of info out there about how to skip *files*; can't seem to find any about *directories*.