Skip to content

Deno.watchFs does not catch 'remove' event since v2.0.3 #26906

Closed
@kt3k

Description

The below script catches 'remove' events until Deno 2.0.2:

const watcher = Deno.watchFs('.'); 
for await (const e of watcher) {
  console.log(">>> event", e); 
}
touch test.txt # => causes "create" event
rm test.txt # => causes "remove" event

However, it doesn't catch "remove" event anymore since Deno 2.0.3.

Version: Deno 2.0.3

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions