• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Recursive filesystem event watcher using inotify in golang

go-fsevents

GoDoc Build Status Go License: MIT Β  Go Report Card

About

Recursive filesystem event watcher using inotify in golang

go-fsevents provides functions necessary for monitoring filesystem events on Linux systems using the inotify interface.

Unlike other inotify packages, go-fsevents provides a recursive watcher, allowing the monitoring of directory trees easily.

UNSTABLE

The package is currently unstable, and as such should not be used in any production environment.

Many changes, additions and breaking refactors will take place between now and the stable 1.0.0 release.

You have been warned.

Features

  • Single directory event monitoring
  • Recursive directory tree event monitoring
  • EventHandle interface to allow for clean and concise handling of events
  • Access to the underlying raw inotify event through the unix package
  • Predefined event translations. No need to fuss with raw inotify flags.
  • Concurrency safe

Examples

See the examples in examples for quick and easy runnable examples of how go-fsevents can be used in your project

handlers.go describes how to use the EventHandlers interface to handle events automatically

loop.go describes how to read events from the watcher.Events channel