瀏覽代碼

FullName property instead of ToString in Emby.Server.Implementations/IO/ManagedFileSystem.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
Ken 4 年之前
父節點
當前提交
eea142cad1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

+ 1 - 1
Emby.Server.Implementations/IO/ManagedFileSystem.cs

@@ -249,7 +249,7 @@ namespace Emby.Server.Implementations.IO
                     // Issue #2354 get the size of files behind symbolic links
                     if (fileInfo.Attributes.HasFlag(FileAttributes.ReparsePoint))
                     {
-                        using (Stream thisFileStream = File.OpenRead(fileInfo.ToString()))
+                        using (Stream thisFileStream = File.OpenRead(fileInfo.FullName))
                         {
                             result.Length = thisFileStream.Length;
                         }