Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
/ fswatch Public archive

A small library to add a few features to github.com/fsnotify/fsnotify.

License

Notifications You must be signed in to change notification settings

cespare/fswatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fswatch

This is a small Go library that builds on top of github.com/fsnotify/fsnotify to add some features that I almost always want when using this library:

  • Recursive directory watches (and watch removals -- see fsnotify/fsnotify#41).
  • Ignore CHMOD-only changes; this works around a macOS issue that Spotlight likes to touch files again immediately after they've been touched (and I normally don't care about attribute changes; only additions and deletions).
  • Coalesce rapid sequences of changes over a configurable threshold: this helps in various scenarios, such as editors writing out via temp files.

Warning

This is a library I wrote purely for my own needs and I'm pretty sure it has some bugs. Or maybe fsnotify has some bugs. The whole file system notification thing has all kinds of fun flakiness, in my experience.

About

A small library to add a few features to github.com/fsnotify/fsnotify.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages