You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a Directory on a UNC path I get this error if the directory name contains an "extension" too long.
For example:
Directory.Create("\\sntsmb01\ApplicationSupport\Sviluppo\Deploy_Working\RIP_09733_ChangeManagement_PR_10125.IT_-20190426_01_Emile.Xxxxxxxxxxx\Cccccccccc\SmartClient\wwwroot_APPZ[SC] Cccccccccc.LimitsBuilder.2\Application Files\Xxxxxxx.Bre.Xxxxxx.Builder_4_5_0_214 ");
Workaround:
Create a fake Dir adding a fake extension like ".a" and then rename it using Directory.Move(fakeName, realName)
Stack Trace:
System.IO.PathTooLongException: The filename or extension is too long.
at Pri.LongPath.Directory.CreateDirectoryUnc(String path)
at Pri.LongPath.Directory.CreateDirectory(String path)
The text was updated successfully, but these errors were encountered:
Using latest NuGet package: Pri.LongPath 2.0.47
When trying to create a Directory on a UNC path I get this error if the directory name contains an "extension" too long.
For example:
Directory.Create("\\sntsmb01\ApplicationSupport\Sviluppo\Deploy_Working\RIP_09733_ChangeManagement_PR_10125.IT_-20190426_01_Emile.Xxxxxxxxxxx\Cccccccccc\SmartClient\wwwroot_APPZ[SC] Cccccccccc.LimitsBuilder.2\Application Files\Xxxxxxx.Bre.Xxxxxx.Builder_4_5_0_214 ");
Workaround:
Create a fake Dir adding a fake extension like ".a" and then rename it using Directory.Move(fakeName, realName)
Stack Trace:
System.IO.PathTooLongException: The filename or extension is too long.
at Pri.LongPath.Directory.CreateDirectoryUnc(String path)
at Pri.LongPath.Directory.CreateDirectory(String path)
The text was updated successfully, but these errors were encountered: