GitHub

WatchBackendService

API reference for WatchBackendService.

Watches a path in place of the file system's own watcher: None leaves the path to it.

Functions

register

register(path, info, *, recursive, on_ready) -> Stream[WatchEvent, PlatformError] | None
ParameterTypeDescription
pathstr
infoFileInfo
recursivebool
on_readyCallable[[], None] | None

Returns Stream[WatchEvent, PlatformError] | None

def register(
    self,
    path: str,
    info: FileInfo,
    *,
    recursive: bool,
    on_ready: Callable[[], None] | None,
) -> Stream[WatchEvent, PlatformError] | None: ...