Skip to content

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

@jbrown123

Description

@jbrown123

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions