-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
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 \\?\
.