Skip to content

Trailing slash consistency between __dirname and os.tmpdir() #715

Closed
@hacksparrow

Description

@hacksparrow
console.log(os.tmpdir()) // trailing slash
console.log(__dirname) // no trailing slash

Is there a good reason why os.tmpdir() ends with a trailing slash, while __dirname does not? If there is none, it might make sense to make the return values consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    osIssues and PRs related to the os subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions