How to deal with files with a name longer than 259 characters?
.NET 4.6.2 Solution Use the \\?\C:\Verrrrrrrrrrrry long path syntax as described here. .NET Core Solution It just works because the framework adds the long path syntax for you. Pre .NET 4.6.2 Solution Also use the long path syntax and the Unicode version of the Win32 API function with P/Invoke. From Naming Files, Paths, and Namespaces: … Read more