Skip to main content
Module

x/netzo/deno.d.ts>Deno.FsWatcher

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
interface Deno.FsWatcher
implements AsyncIterable<FsEvent>
import { type Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { FsWatcher } = Deno;

FsWatcher is returned by Deno.watchFs function when you start watching the file system. You can iterate over this interface to get the file system events, and also you can stop watching the file system by calling .close() method.

Properties

readonly
rid: number

The resource id of the FsWatcher.

Methods

close(): void

Stops watching the file system and closes the watcher resource.

optional
deprecated
return(value?: any): Promise<IteratorResult<FsEvent>>

Stops watching the file system and closes the watcher resource.

[[Symbol.asyncIterator]](): AsyncIterableIterator<FsEvent>