From dfc9f74116ca46e23f317fcc5163a81c753b9ee7 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 7 Dec 2020 22:39:52 -0500 Subject: [PATCH] Fixed broken path tests Fixes #8132 (cherry picked from commit 5a22afc42bb03c9cdfb0a46d470d084dbdd495d5) --- src/NzbDrone.Windows/Disk/DiskProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Windows/Disk/DiskProvider.cs b/src/NzbDrone.Windows/Disk/DiskProvider.cs index 3200e669b..4013e2e90 100644 --- a/src/NzbDrone.Windows/Disk/DiskProvider.cs +++ b/src/NzbDrone.Windows/Disk/DiskProvider.cs @@ -190,6 +190,11 @@ namespace NzbDrone.Windows.Disk private IMount GetReparsePoint(string path) { + if (!Directory.Exists(path)) + { + return null; + } + var di = new DirectoryInfo(path); var isReparsePoint = di.Attributes.HasFlag(FileAttributes.ReparsePoint);