The Free Software Media System - Server Backend & API
offline support fix
Luke Pulverentieb313459d311
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex 549ce06a55..f0ea63b291 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -854,17 +854,15 @@ namespace MediaBrowser.Controller.Entities/// <returns></returns>private bool IsRootPathAvailable(string path){- var parent = System.IO.Path.GetDirectoryName(path);-// Depending on whether the path is local or unc, it may return either null or '\' at the top- while (!string.IsNullOrEmpty(parent) && !parent.ToCharArray()[0].Equals(System.IO.Path.DirectorySeparatorChar))+ while (!string.IsNullOrEmpty(path) && path.Length > 1){- if (Directory.Exists(parent))+ if (Directory.Exists(path)){return true;}- parent = System.IO.Path.GetDirectoryName(path);+ path = System.IO.Path.GetDirectoryName(path);}return false;