Skip to content

Path.GetInvalidPathChars() doesn't include angle brackets #44520

@NiJeTi

Description

@NiJeTi

As provided here paths in Windows cannot contain angle brackets (< and >).

But method GetInvalidPathChars() in Path class which returns array of prohibited characters, does not contain angle brackets.

image

Also there is an example of using this method in the Microsoft Docs where angle brackets are also stated as invalid.

image

I propose to change it to something like this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions