dart-lang/path

Normalize fails to remove trailing . on Windows

Closed this issue · 0 comments

print(normalize("C:\\foo\\."));

Expected output: C:\foo
Actual output: C:\foo\.

Seems to only happen on Windows. Linux seems to correctly remove trailing dots.

This is causing Flutter to crash on Windows: flutter/flutter#9828