Skip to content

Path. GetInvalidPathChars() does not contain ">" on windows #121162

Description

@jogibear9988

Description

The Path. GetInvalidPathChars() does not contain the correct characters in windows.

Reproduction Steps

run this in immediate window:
Path.GetInvalidPathChars()

It returns:

     [0]: 124 '|'
     [1]: 0 '\0'
     [2]: 1 '\u0001'
     [3]: 2 '\u0002'
     [4]: 3 '\u0003'
     [5]: 4 '\u0004'
     [6]: 5 '\u0005'
     [7]: 6 '\u0006'
     [8]: 7 '\a'
     [9]: 8 '\b'
     [10]: 9 '\t'
     [11]: 10 '\n'
     [12]: 11 '\v'
     [13]: 12 '\f'
     [14]: 13 '\r'
     [15]: 14 '\u000e'
     [16]: 15 '\u000f'
     [17]: 16 '\u0010'
     [18]: 17 '\u0011'
     [19]: 18 '\u0012'
     [20]: 19 '\u0013'
     [21]: 20 '\u0014'
     [22]: 21 '\u0015'
     [23]: 22 '\u0016'
     [24]: 23 '\u0017'
     [25]: 24 '\u0018'
     [26]: 25 '\u0019'
     [27]: 26 '\u001a'
     [28]: 27 '\u001b'
     [29]: 28 '\u001c'
     [30]: 29 '\u001d'
     [31]: 30 '\u001e'
     [32]: 31 '\u001f'

Expected behavior

It should at least return:

    ** (backslash)
    / (forward slash)
    : (colon)
    * (asterisk)
    ? (question mark)
    " (double quote)
    < (less than)
    > (greater than)
    | (vertical bar or pipe) 

Actual behavior

see above

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions