I inspected famd sources and found out the reason for duplicated events:
As far as I inderstood, after receiving event about changed directory, fam scans the directory, finds out that the file was deleted, and sends 'deleted' event to client. After this, fam goes through the directory file list and and sends event again.
I still don't understand, why fam does not notice that the monitored directory was deleted. If I ask fam to monitor directory using FAMMonitorFile() instead of FAMMonitorDirectory(), fam notices that directory was deleted and sends event correctly.
--
Best regards, Sergey Spiridonov
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]