parent
70155cae18
commit
b5d502bd5d
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace NzbDrone.Common.Disk
|
||||||
|
{
|
||||||
|
public static class LongPathSupport
|
||||||
|
{
|
||||||
|
public static void Enable()
|
||||||
|
{
|
||||||
|
// Mono has an issue with enabling long path support via app.config.
|
||||||
|
// This works for both mono and .net on Windows.
|
||||||
|
AppContext.SetSwitch("Switch.System.IO.UseLegacyPathHandling", false);
|
||||||
|
AppContext.SetSwitch("Switch.System.IO.BlockLongPaths", false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue