deno / latest / ~ / deno.fsevent.html

Deno.FsEvent

Represents a unique file system event yielded by a Deno.FsWatcher.

interface FsEvent {
    
flag?: FsEventFlag;
kind:
| "any"
| "access"
| "create"
| "modify"
| "remove"
| "other";
paths: string[];
}

Properties

flag?: FsEventFlag

Any additional flags associated with the event.

kind: "any" | "access" | "create" | "modify" | "remove" | "other"

The kind/type of the file system event.

paths: string[]

An array of paths that are associated with the file system event.

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.FsEvent