dart-lang/path

join() return a illegal path

Closed this issue · 2 comments

the join return illegal path both on windows & linux

example

import 'package:path/path.dart' as path;

void main() {
  print(path.join('/root', './bilibili.png'));
}

Linux

expection: /root/bilibili.png
actuality: /root/./bilibili.png

Windows

expection: \root\bilibili.png
actuality: /root\./bilibili.png

i will work on this if necessary.

oh!
join has no invoke normalize inline, but i can call it manually, so this is not a issue.