1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed broken path tests

Fixes #8132

(cherry picked from commit 5a22afc42bb03c9cdfb0a46d470d084dbdd495d5)
This commit is contained in:
Qstick 2020-12-07 22:39:52 -05:00
parent 189603c756
commit dfc9f74116

View File

@ -190,6 +190,11 @@ public override bool TryCreateHardLink(string source, string destination)
private IMount GetReparsePoint(string path)
{
if (!Directory.Exists(path))
{
return null;
}
var di = new DirectoryInfo(path);
var isReparsePoint = di.Attributes.HasFlag(FileAttributes.ReparsePoint);