Mac FSEvents - How to detect if a file or directory was deleted/removed

1.1k views Asked by At

I use the FSEvent API to detect file modifications. I'm already able to detect when new files/folders are created or renamed. But I can't detect if a file was removed/deleted.
When I delete a file I get a kFSEventStreamEventFlagItemRenamed and not a kFSEventStreamEventFlagItemRemoved like I would expect.
Does anyone have experience with FSEvent API or know this problem?

Thanks

0

There are 0 answers