开发者

How to increase file path character limit

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜