开发者

How to increase file path character limit

开发者 https://www.devze.com 2023-04-03 03:29 出处:网络
How do y开发者_Go百科ou use the \\\\?\\ correctly to ensure that the file path size doesnt throw a took long exception at 250 characters? The code i have posted fails to work correctly.

How do y开发者_Go百科ou use the \\?\ correctly to ensure that the file path size doesnt throw a took long exception at 250 characters? The code i have posted fails to work correctly.

Thank you

foreach (string filePath in Directory.GetFiles(folder))
{
    String path = @"\\?\" + filePath;
    ...


.Net 1.0-4.0 does not support long paths:

more information on why .NET currently lacks built-in support for long paths

0

精彩评论

暂无评论...
验证码 换一张
取 消