Skip to content

Look into using Spotlight queries to track Modification/Creation on OS X #48

Closed
chase opened this Issue Aug 9, 2013 · 4 comments

2 participants

@chase
chase commented Aug 9, 2013

Spotlight has privileged access to /dev/fsevents and logs anything that affects an indexed location's metadata, including creation date and modified date.

Live queries allow continuous updates, but crafting an efficiently polled query for certain watched files may be difficult.

Also, there are no Node plugins that deal with the Spotlight API, so some C++ writing may be in order.

@chase chase was assigned Aug 9, 2013
@balupton
Bevry member

Anything that uses C++ rules out windows unfortunately... which is 30% of DocPad usage.

@chase
chase commented Aug 11, 2013

@balupton This would be specifically for OS X anyway, since the Spotlight API is an OS X-only feature.

It seems that a good majority of the current issues lead back to the ambiguity offered by FSEvents on users that are OS X/Darwin.

@balupton
Bevry member

image

image

@chase
chase commented Sep 22, 2013

We may not have to worry about this issue once Node v0.11 goes stable. A recent update to libuv fixed a glaring issue with FSEvents streams.
I have yet to test DocPad with the most recent unstable branch of Node, but hopefully this will be a more permanent solution than what I am working on.

@balupton balupton closed this Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.