Closed christian-schulze closed 1 year ago
This is exactly what the macOS API is reporting, I'm afraid. There should be a way to correlate multiple rename events using inode
identifiers (available since macOS 10.13 High Sierra IIRC), but I haven't looked into it yet.
@emcrisostomo yes agreed, I've actually patched the fsevents
node module to support this:
https://github.com/fsevents/fsevents/pull/360
Thanks for the feedback @christian-schulze
I've update the issue since I've fixed this in the feature branch for both the fsevents_monitor
and the inotify_monitor
.
Merged into master
.
File move operations on MacOS are reported by
fswatch
as pairs ofRenamed
events. The first event being the source and the second event being the destination.Given the following scenario, the events are not reported in the correct order:
Actual output:
Given these results, there is no way to correlate event 3 with 1, and event 5 with 2.
If the
Created
andRenamed
events were not merged into one event, then this might behave as expected. Is this something that fswatch is doing explicitly? Or is this what the MacOS API is reporting?