UweKeim / ZetaLongPaths

A .NET library to access files and directories with more than 260 characters length.
https://nuget.org/packages/ZetaLongPaths
MIT License
141 stars 28 forks source link

ZlpPathHelper.IsAbsolute not support long path format #25

Closed rwrc closed 5 years ago

rwrc commented 5 years ago

if path starts with "\\?\" the ZlpPathHelper.IsAbsolute method returns always false.

var absolutePath = ZlpPathHelper.GetAbsolutePath(longRelativeFilePath, longBasePath);
// absolutePath has prefix \\\\?\\
var isAbsolutePath = ZlpPathHelper.IsAbsolutePath(absolutePath);
//isAbsolutePath is false ;(
UweKeim commented 5 years ago

Also on NuGet:

https://www.nuget.org/packages/ZetaLongPaths/1.0.0.29