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

Tilde problem #41

Closed MustafaDaoud90 closed 2 years ago

MustafaDaoud90 commented 2 years ago

windows convert the long path to a short path using Tilde "~" for example:

return from windows: C:\HOTLON~1\TESTLO~1\NEWFOL~1\MAAAAA~1\ROOOOO~1\ALLLLL~1\QAAAAA~1\ORIGIN~1\TESTTT~1\test221\HOTLON~1.PNG

the original path: C:\HOTLongPathTEST\TestLongPathhhhhhh211\Newfolder11\Maaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaain11\Roooooooooooooooooooooooooooooooooooooooooooooooot11\ALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL11\QAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrrrrrrtttttttttttttttttttttttttttttttttttt11\originallllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll11\testttt111\test221\HotLongtest.png

when pass the windows return path to the zeta file info and check if zlpFileInfo.Exists or not always returns Exists = False and zlpFileInfo.FullName returns the short path as windows.

image

UweKeim commented 2 years ago

Currently, I do have no interest and intention to support short paths.

Feel free to add this functionality by yourself and send a pull request.