You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Return an error if FSEventStreamStart fails
* Validate the 4096 path limit and error detection
* Add notes for #46 and #48 limitations of macOS
Co-authored-by: Martin Tournoij <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,13 @@
6
6
7
7
**Warning:** This API should be considered unstable.
8
8
9
+
## Caveats
10
+
11
+
Known caveats of the macOS FSEvents API which this package uses under the hood:
12
+
13
+
- FSEvents returns events for the named path only, so unless you want to follow updates to a symlink itself (unlikely), you should use `filepath.EvalSymlinks` to get the target path to watch.
14
+
- There is an internal macOS limitation of 4096 watched paths. Watching more paths will result in an error calling `Start()`. Note that FSEvents is intended to be a recursive watcher by design, it is actually more efficient to watch the containing path than each file in a large directory.
15
+
9
16
## Contributing
10
17
11
18
Request features and report bugs using the [GitHub Issue Tracker](https://github.com/fsnotify/fsevents/issues).
0 commit comments