Fixed broken path tests
This commit is contained in:
parent
75378f7bde
commit
5a22afc42b
|
@ -190,6 +190,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…
Reference in New Issue