Compare commits

...

1 Commits

Author SHA1 Message Date
Mark McDowall 4e3bd46ad5 Fixed: Improve paths longer than 256 on Windows failing to hardlink 2024-04-18 21:40:22 -07:00
1 changed files with 5 additions and 0 deletions

View File

@ -170,6 +170,11 @@ namespace NzbDrone.Windows.Disk
{
try
{
if (source.Length > 256 && !source.StartsWith(@"\\?\"))
{
source = @"\\?\" + source;
}
return CreateHardLink(destination, source, IntPtr.Zero);
}
catch (Exception ex)