Native filesystem change listener for Erlang and Elixir on macOS, Windows and Linux
source availableDHARMA Licensefree
fs is Synrc's native file system listener for Erlang and Elixir: a watcher process sends subscribed processes a message for each change under a directory (created, modified, removed, renamed and more), using fsevent on macOS, inotify on Linux (which needs inotify-tools) and inotify-win on Windows. It's under Synrc's own DHARMA License, the ISC terms plus restrictions on use in support of war against Ukraine and of suppressive ideologies.
Problems it solves
- watch a directory for file changes in Elixir
- reload code when a file changes in my Erlang app
- get file system events on macOS, Linux and Windows from Erlang
Features
- file change events as Erlang messages
- fsevent, inotify and inotify-win backends
- subscribe any process to a watcher
- list the events a backend knows
Limitations
Alternatives
The same job
These do what fs (Erlang) does.
- FileSystem (Elixir) Watch files for changes from Elixir on macOS, Linux, BSD and Windows
