Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watcher reports deleted directory as "destroy FILE" instead of "destroy DIR" #72

Open
jbrown123 opened this issue Feb 18, 2025 · 0 comments

Comments

@jbrown123
Copy link

jbrown123 commented Feb 18, 2025

I'm on win10 64 bit using to 0.13.5 release of watcher.

This is the output from the tw CLI tool when creating and removing a directory (md test and rd test). Note that it properly says create DIR but then says destroy FILE;

create dir C:\temp\test
destroy file C:\temp\test

Destroying an actual file is correctly reported.

create file C:\temp\test
modify file C:\temp\test
destroy file C:\temp\test

Watcher similarly reports 'file' ("path_type":"file") when it's really a directory being destroyed (removed).

{"path_type":"dir","path_name":"C:\temp\test","effect_type":"create","effect_time":1739844560694698300,"associated":null}
{"path_type":"file","path_name":"C:\temp\test","effect_type":"destroy","effect_time":1739844563702398500,"associated":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant