mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed broken path tests
(cherry picked from commit 5a22afc42bb03c9cdfb0a46d470d084dbdd495d5)
This commit is contained in:
parent
eab4134434
commit
e38d208f8f
1 changed files with 5 additions and 0 deletions
|
@ -201,6 +201,11 @@ namespace NzbDrone.Windows.Disk
|
||||||
|
|
||||||
private IMount GetReparsePoint(string path)
|
private IMount GetReparsePoint(string path)
|
||||||
{
|
{
|
||||||
|
if (!Directory.Exists(path))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var di = new DirectoryInfo(path);
|
var di = new DirectoryInfo(path);
|
||||||
var isReparsePoint = di.Attributes.HasFlag(FileAttributes.ReparsePoint);
|
var isReparsePoint = di.Attributes.HasFlag(FileAttributes.ReparsePoint);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue