file_system v0.2.2 FileSystem.Backends.FSInotify View Source
This file is a fork from https://github.com/synrc/fs.
FileSysetm backend for linux and freebsd, a GenServer receive data from Port, parse event
and send it to the worker process.
Need inotify-tools
installed to use this backend.
Backend Options
:recursive
(bool, default: true), monitor directories and their contents recursively
Executable File Path
The default behaivour to find executable file is finding inotifywait
from $PATH
, there’re two ways to custom it, useful when run :file_system
with escript.
config with
config.exs
config :file_system, :fs_inotify, executable_file: "YOUR_EXECUTABLE_FILE_PATH"
config with
FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE
os environment FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE=YOUR_EXECUTABLE_FILE_PATH
Link to this section Summary
Functions
Callback implementation for FileSystem.Backend.bootstrap/0
Callback implementation for FileSystem.Backend.known_events/0
Callback implementation for FileSystem.Backend.supported_systems/0
Link to this section Functions
Callback implementation for FileSystem.Backend.bootstrap/0
.
Callback implementation for FileSystem.Backend.known_events/0
.
Callback implementation for FileSystem.Backend.supported_systems/0
.