https://github.com/ffhan/igotify
A thin wrapper around inotify written in Go
https://github.com/ffhan/igotify
filesystem filesystem-utils inotify linux
Last synced: 5 months ago
JSON representation
A thin wrapper around inotify written in Go
- Host: GitHub
- URL: https://github.com/ffhan/igotify
- Owner: ffhan
- License: apache-2.0
- Created: 2020-12-30T15:35:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-31T15:57:47.000Z (over 5 years ago)
- Last Synced: 2024-06-20T05:28:48.538Z (about 2 years ago)
- Topics: filesystem, filesystem-utils, inotify, linux
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# igotify
A thin wrapper around *inotify* Linux syscalls and capabilities. Allows for easier interfacing with *inotify* through
usual Go patterns instead of directly using the *syscall* library.
See `examples/basic` for basic usage and tips on how to use the wrapper.
## How to use
`go get github.com/ffhan/igotify@v0.3.0`
## Prerequisites
* *igotify* uses `unistd.h` GNU library to fetch a `NAME_MAX` configuration value for the system. If not present on the
machine, *igotify* will assume NAME_MAX to be 255. You can test if that assumption is correct for the system with
`getconf NAME_MAX ` for any path.