Skip to content

fs.mkdtemp should return a Buffer when prefix argument is a Buffer #58795

Description

@bakkot

fs.mkdtemp and friends take a prefix argument, which can be a Buffer encoding a non-UTF8 path. But the APIs always return a string, which can mangle the encoding. So these should return a Buffer in that case. See #58516 (comment).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions