Bugzilla – Bug 405
fam follows symbolic links when monitoring a directory
Last modified: 2005-04-09 09:49:46 CDT
states that "If you specify the pathname of a symbolic link to
FAMMonitorDirectory() or FAMMonitorFile(), FAM monitors only the symbolic link
itself, not the target of the link", FAM does follow symbolic links for
monitored directories, since it calls opendir() in the DirectoryScanner constructor.
You should only call opendir() if the file is not a symbolic link.