fs_start_watcher_event()

fs_start_watcher_event()#

fs_start_watcher_event() starts monitoring the specified file system event, enabling notifications for file and directory changes.

Prototype

int fs_start_watcher_event(
    fs_event_t *fs_event
);

Parameters

Key

Type

Description

fs_event

fs_event_t *

Pointer to the file system event structure to be started.


Return Value

Returns 0 on success, or a negative error code on failure.

Notes

Once started, the event will trigger the associated callback when file system changes occur. Use fs_stop_watcher_event() to stop monitoring and release resources.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples