File_Watcher module

add_directories

procedure · 1 overloadSource

Starts watching each folder in dir_paths and returns true when all of them were added. It stops at the first one that cannot be watched (it is missing, is not a folder, or the system is out of watches) and returns false; the ones before it stay watched. The failure is logged through context.logger.

With watch_recursively the sub-folders are watched too. Changes made before the call are not reported. Paths are as the file procedures take them; relative ones are resolved when added. Fails an assertion on a watcher that was not set up.

add_directories :: (watcher: *$T/File_Watcher, dir_paths: ..string) -> bool

Starts watching each folder in dir_paths and returns true when all of them were added. It stops at the first one that cannot be watched (it is missing, is not a folder, or the system is out of watches) and returns false; the ones before it stay watched. The failure is logged through context.logger.

With watch_recursively the sub-folders are watched too. Changes made before the call are not reported. Paths are as the file procedures take them; relative ones are resolved when added. Fails an assertion on a watcher that was not set up.

Parameters

watcher: *$T/File_Watcher
dir_paths: ..string

Returns

bool

See also