tauri-apps / tauri-apps/plugins-workspace

[bug] watchImmediate reports invalid event type for deleted files on MacOS

Open
#2,831 0 comments 0 reactions 0 assignees View on GitHub
platform: macos plugin: fs type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

1. Set up watchImmediate for a directory and log events
2. Delete any file in the directory

Expected: `("remove" in event.kind) === true`
Got: `{type: {modify: {kind: "rename", mode: "any"}}, paths: ["/path/to/the/file/that/it/deleted"], attrs: {}}`

Not sure that this is the intended behavior.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.