Skip to content

watch always fires rename event #9082

@no1melman

Description

@no1melman
  • Version: v6.5.0
  • Platform: 64-bit Windows 10
  • Subsystem: fs

Running the below code, the eventType will always be rename whether I delete, add file...:

fs.watch(watchDir, (eventType, fileName) => {
    console.log(eventType);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions