Skip to content

fileURLToPath returns forward slashes on Windows #25265

Closed
@zenparsing

Description

@zenparsing
  • Version: v11.6.0
  • Platform: Win64
  • Subsystem: url

url.fileURLToPath results in a path containing forward slashes instead of backslashes on Windows.

url.fileURLToPath('file:///C:/Users/zenparsing/Code');
// 'C:/Users/zenparsing/Code'

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.urlIssues and PRs related to the legacy built-in url module.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions