OSXFuse - How to distinguish open file from preview in Finder
问题 I'm using OSXFuse https://osxfuse.github.io/ And wanted to know if I can tell apart the following operations: File is opened by the user File is previewed in Finder My problem is that for both cases readFileAtPath is called, and seemingly with the same parameters. 回答1: Apparently this cannot be done using the simple API, as read is read no matter who requests it. But that's the point, if you could identify who requested to read, you could block it for some processes. Using Fuse's C api, you