Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Cannot open special Windows device "NUL" #9271

@natevw

Description

@natevw

I can't figure out a way to fs.openSync("NUL") (the Win32 equivalent of "/dev/null").

It seems that, since the open logic resolves to absolute path first, rather than just passing what I provide to the underlying call, that any special files like this will fail under Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions