You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
462 B
16 lines
462 B
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);
|
|
}
|
|
}
|
|
}
|