You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-15 01:25:05 +02:00
Fixed: Improve paths longer than 256 on Windows failing to hardlink
This commit is contained in:
committed by
Mark McDowall
parent
d738035fed
commit
a97fbcc40a
@ -170,6 +170,11 @@ namespace NzbDrone.Windows.Disk
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (source.Length > 256 && !source.StartsWith(@"\\?\"))
|
||||||
|
{
|
||||||
|
source = @"\\?\" + source;
|
||||||
|
}
|
||||||
|
|
||||||
return CreateHardLink(destination, source, IntPtr.Zero);
|
return CreateHardLink(destination, source, IntPtr.Zero);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user