fixes #225 - MediaServer Root Drive

This commit is contained in:
Luke Pulverenti 2013-05-04 11:43:10 -04:00
parent 68bc39fe4e
commit b67a0dfe03

View File

@ -44,6 +44,15 @@ namespace MediaBrowser.Server.Implementations.Library
return false;
}
// Drives will sometimes be hidden
if (args.Path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase))
{
if (new DriveInfo(args.Path).IsReady)
{
return false;
}
}
return true;
}