Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.
This repository was archived by the owner on May 4, 2018. It is now read-only.

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

@jorangreef

Description

@jorangreef

From: nodejs/node-v0.x-archive#8372

When renaming "a.txt" to "b.txt" I get the following events from fs.watch on Windows 7 on Parallels:

rename null
rename b.txt
change b.txt

Subsequently deleting "b.txt" just gives:

rename null

According to Ben, the null rename event is the FILE_ACTION_RENAMED_OLD_NAME event. The filename is filtered out but it's not for feature parity with inotify.

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