From e38d208f8fe37869b94184526a61ea8c10d3e684 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 7 Dec 2020 22:39:52 -0500 Subject: [PATCH] Fixed broken path tests (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 597c792ee..02e057c96 100644 --- a/src/NzbDrone.Windows/Disk/DiskProvider.cs +++ b/src/NzbDrone.Windows/Disk/DiskProvider.cs @@ -201,6 +201,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);