file_system v0.2.10 FileSystem.Backends.FSMac View Source

This file is a fork from https://github.com/synrc/fs. FileSysetm backend for macos, a GenServer receive data from Port, parse event and send it to the worker process. Will compile executable the buildin executable file when file the first time it is used.

Backend Options

Executable File Path

The default executable file is mac_listener in priv dir of :file_system application, there're two ways to custom it, useful when run :file_system with escript.

  • config with config.exs config :file_system, :fs_mac, executable_file: "YOUR_EXECUTABLE_FILE_PATH"

  • config with FILESYSTEM_FSMAC_EXECUTABLE_FILE os environment FILESYSTEM_FSMAC_EXECUTABLE_FILE=YOUR_EXECUTABLE_FILE_PATH

Link to this section Summary

Functions

Callback implementation for FileSystem.Backend.bootstrap/0.

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Callback implementation for FileSystem.Backend.known_events/0.

Link to this section Functions

Callback implementation for FileSystem.Backend.bootstrap/0.

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Callback implementation for FileSystem.Backend.known_events/0.

Callback implementation for FileSystem.Backend.supported_systems/0.