fixed issue preventing drive contents from being read

This commit is contained in:
Luke Pulverenti
2013-05-26 21:24:07 -04:00
parent 82ce0e17e9
commit 826c749774
3 changed files with 8 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ namespace MediaBrowser.Controller.IO
{
var fileInfo = new DirectoryInfo(path);
if (fileInfo.Exists)
if (fileInfo.Exists || path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase))
{
return fileInfo;
}