Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

fs.watch on Windows 7: Renaming a file does not emit event for original path #8372

Closed
@jorangreef

Description

@jorangreef

On Mac, using fs.watch on a directory, and then renaming a file in that directory, will emit two events, one for the file which was "deleted" and one for the file which was "created". Combining these two events later by comparing content can be used to detect renames.

But on Windows, no event is emitted for the original path. Is there no way to modify the usage of ReadDirectoryChangesW to get an event when the original path is removed or renamed to something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions