Skip to content

Add more IO tests around problematic filename characters #25009

@JeremyKuhne

Description

@JeremyKuhne

While we have some tests, it would be good to add more with problematic filenames and filename characters.

Here is a good article describing difficult names for reference:

https://www.dwheeler.com/essays/fixing-unix-linux-filenames.html

Creating, copying, moving, enumerating, deleting, etc.

Trailing spaces and periods on Windows are legal, but difficult to create and access. Calling Win32 APIs with paths normally will strip these. The exception is when prepended with \\?\. We purposefully do not handle creating these unless you use \\?\ as creating these sort of paths frequently breaks apps. We should (and do) handle finding them via GetFiles, etc. and handle manipulating them with the *Info classes. We currently don't allow opening them directly from a path string unless you use \\?\.

Metadata

Metadata

Assignees

Labels

area-System.IOhelp wanted[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedtest-enhancementImprovements of test source code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions