Skip to content

path.relative parse wrong in windows #5485

@nuintun

Description

@nuintun

Node Version: 5.7.0

var path = require('path');
var a = 'E:/WORKSPACE/GitHub/file-send/test/fixtures/name.d/';
var b = 'E:/WORKSPACE/GitHub/file-send/test/fixtures/name.dir/name.txt';

console.log(path.relative(a, b));

result:
qq 20160229181842

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.pathIssues and PRs related to the path subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions