watchGlob


Description:

public static Result<FileWatcher,Error> watchGlob (Path root, string glob)

Starts recursive directory watch with glob filter.

Parameters:

root

root directory.

glob

glob filter.

Returns:

Result.ok(watcher instance), or Result.error(WatcherError.PATH_NOT_FOUND / INVALID_ARGUMENT / MONITOR_SETUP_FAILED).