The Free Software Media System - Server Backend & API
improve handling of disconnected drives
Luke Pulverenti26f6f594cee1
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex b088347842..11c0a57473 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -648,15 +648,15 @@ namespace MediaBrowser.Controller.Entitiespublic static bool IsPathOffline(string path, List<string> allLibraryPaths){- if (FileSystem.FileExists(path))- {- return false;- }+ //if (FileSystem.FileExists(path))+ //{+ // return false;+ //}var originalPath = path;// Depending on whether the path is local or unc, it may return either null or '\' at the top- while (!string.IsNullOrEmpty(path) && path.Length > 1)+ while (!string.IsNullOrWhiteSpace(path) && path.Length > 1){if (FileSystem.DirectoryExists(path)){