mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Fixed: Improve paths longer than 256 on Windows failing to hardlink
(cherry picked from commit a97fbcc40a6247bf59678425cf460588fd4dbecd)
This commit is contained in:
@@ -165,6 +165,11 @@ namespace NzbDrone.Windows.Disk
|
||||
{
|
||||
try
|
||||
{
|
||||
if (source.Length > 256 && !source.StartsWith(@"\\?\"))
|
||||
{
|
||||
source = @"\\?\" + source;
|
||||
}
|
||||
|
||||
return CreateHardLink(destination, source, IntPtr.Zero);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user