https://github.com/dsheets/ocaml-inotify-event
A library for transporting inotify events after they have been produced
https://github.com/dsheets/ocaml-inotify-event
Last synced: 2 months ago
JSON representation
A library for transporting inotify events after they have been produced
- Host: GitHub
- URL: https://github.com/dsheets/ocaml-inotify-event
- Owner: dsheets
- Created: 2016-02-17T12:47:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-03T14:43:50.000Z (about 9 years ago)
- Last Synced: 2026-01-01T23:19:44.997Z (6 months ago)
- Language: OCaml
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
## inotify event tools
The `Inotify_event` module provides [sexplib] constructors and
destructors for the `Inotify.event` type in the [inotify] library.
Also installed is a command line tool, `inotify-events` that sends
inotify events of the current working directory to `stdout`. The events
that `inotify-events` receives can be configured with
`--events=EVENT_LIST` where `EVENT_LIST` is a comma-separated list of
some of:
* access
* attrib
* close_write
* close_nowrite
* create
* delete
* delete_self
* modify
* move_self
* moved_from
* moved_to
* open
* dont_follow
* mask_add
* oneshot
* onlydir
* move
* close
* all
By default, all events are received and output. The format of the output
can be set with `--format=FORMAT` where `FORMAT` is one of `string` or
`sexp` which outputs a pretty-printed string or an S-expression
consumable with the `Inotify_event` module.
[sexplib]: https://github.com/janestreet/sexplib
[inotify]: https://github.com/whitequark/ocaml-inotify