Skip to content

fs.watch file matching is one character off in windowsΒ #4351

@jsheely

Description

@jsheely
var fs = require('fs');

fs.watch('test/file.jsx', {}, (event, filename) => {
    console.log('Changed file', filename);
});
  • Changes to a file file.js will yield change events for file.jsx
  • Changes to file file.j will yield changes events file.js

Note: Tested on Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions