Skip to content

fs.watchFile calling listener on non-existing files #1745

Closed
@kanongil

Description

@kanongil

fs.watchFile is supposed to call the listener when the file attributes change. If I call it using a non-existing path, the listener is immediately fired for some reason.

In node 0.10, it would wait until the file exists before calling the listener. The current functionality does however match node 0.12 behavior, which I filed an issue again here: nodejs/node-v0.x-archive#25345.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions