TruePath icon indicating copy to clipboard operation
TruePath copied to clipboard

Support Windows disk drives in the normalization algorithm

Open ForNeVeR opened this issue 2 months ago • 0 comments

Currently, our normalization algorithm doesn't support the Windows disk drives at all. We should consider the disk drive (if present) to be ignored when normalizing path: it should be normalized regardless of the drive letter and its presence.

For example, consider this set of test cases:

    [InlineData("C:.", "C:")]
    [InlineData("C:./foo", "C:foo")]
    [InlineData("C:..", "C:..")]
    [InlineData("C:/..", "C:/..")]
    public void WindowsSpecificDotFoldersAreTraversed(string input, string expected)

We should support that and re-enable the corresponding test.

See TODO[#16] in the code when dealing with this issue.

ForNeVeR avatar Apr 21 '24 18:04 ForNeVeR