Skip to content

In the fs.watch callback, event parameter is always "rename" on OS X #7420

@Drenmi

Description

@Drenmi
  • Version: v6.2.2
  • Platform: Darwin 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
  • Subsystem: File System

No matter what manipulation of the file is made, the callback parameter event is set to "rename":

fs.watch('./tmp', function(event, filename) {
  console.log(event);
});

// Create file
> rename

// Rename file
> rename

// Delete file
> rename

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.macosIssues and PRs related to the macOS platform / OSX.wontfixIssues that will not be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions