Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor individual files #16

Open
hbmartin opened this issue Feb 11, 2013 · 1 comment
Open

Monitor individual files #16

hbmartin opened this issue Feb 11, 2013 · 1 comment
Assignees

Comments

@hbmartin
Copy link

Is there a way to monitor individual files (as opposed to directories)?

Thanks!

@ghost ghost assigned malthe Feb 11, 2013
@malthe
Copy link
Owner

malthe commented Feb 11, 2013

Not really, but since 10.7:

kFSEventStreamCreateFlagFileEvents
Request file-level notifications. Your stream will receive events about individual files in the hierarchy you're watching instead of only receiving directory level notifications. Use this flag with care as it will generate significantly more events than without it.
Available in OS X v10.7 and later.
Declared in FSEvents.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants