Skip to content

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

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.

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

    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