Raxol.Core.Runtime.Plugins.FileWatcher (Raxol v0.5.0)

View Source

Manages file watching operations for plugins.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the list of watched files.

Sets up file watching for a directory.

Starts the file watcher.

Stops the file watcher.

Removes a file from watching.

Adds a file to watch.

Types

t()

@type t() :: %Raxol.Core.Runtime.Plugins.FileWatcher{
  callback: function(),
  debounce_interval: integer(),
  event_queue: [map()],
  last_event_time: integer(),
  watched_files: map()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_watched_files(pid)

Gets the list of watched files.

setup_file_watching(pid)

Sets up file watching for a directory.

start_link(opts \\ [])

Starts the file watcher.

stop(pid)

Stops the file watcher.

unwatch_file(pid, file_path)

Removes a file from watching.

watch_file(pid, file_path, callback)

Adds a file to watch.