Browse Source

split the new command to more than one line

dkanada 6 years ago
parent
commit
b768ad978e
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

+ 2 - 4
Emby.Server.Implementations/IO/ManagedFileSystem.cs

@@ -647,7 +647,6 @@ namespace Emby.Server.Implementations.IO
         public virtual bool IsPathFile(string path)
         public virtual bool IsPathFile(string path)
         {
         {
             // Cannot use Path.IsPathRooted because it returns false under mono when using windows-based paths, e.g. C:\\
             // Cannot use Path.IsPathRooted because it returns false under mono when using windows-based paths, e.g. C:\\
-
             if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 &&
             if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 &&
                 !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase))
                 !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase))
             {
             {
@@ -655,8 +654,6 @@ namespace Emby.Server.Implementations.IO
             }
             }
 
 
             return true;
             return true;
-
-            //return Path.IsPathRooted(path);
         }
         }
 
 
         public virtual void DeleteFile(string path)
         public virtual void DeleteFile(string path)
@@ -669,7 +666,8 @@ namespace Emby.Server.Implementations.IO
         {
         {
             // check for ready state to avoid waiting for drives to timeout
             // check for ready state to avoid waiting for drives to timeout
             // some drives on linux have no actual size or are used for other purposes
             // some drives on linux have no actual size or are used for other purposes
-            return DriveInfo.GetDrives().Where(d => d.IsReady && d.TotalSize != 0 && d.DriveType != DriveType.Ram).Select(d => new FileSystemMetadata
+            return DriveInfo.GetDrives().Where(d => d.IsReady && d.TotalSize != 0 && d.DriveType != DriveType.Ram)
+                .Select(d => new FileSystemMetadata
             {
             {
                 Name = d.Name,
                 Name = d.Name,
                 FullName = d.RootDirectory.FullName,
                 FullName = d.RootDirectory.FullName,