watcher icon indicating copy to clipboard operation
watcher copied to clipboard

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

Open jbrown123 opened this issue 10 months ago • 1 comments

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}

jbrown123 avatar Feb 18 '25 02:02 jbrown123

It is somewhat more difficult for me to track down and resolve Windows issues, since I don't have a Windows development environment (outside of GitHub actions runners, I guess).

So, help wanted.

e-dant avatar May 26 '25 14:05 e-dant