|
|
@ -55,8 +55,8 @@ namespace Jellyfin.Server.Infrastructure
|
|
|
|
// This may or may not be fixed in .NET 6, but looks like it will not https://github.com/dotnet/aspnetcore/issues/34371
|
|
|
|
// This may or may not be fixed in .NET 6, but looks like it will not https://github.com/dotnet/aspnetcore/issues/34371
|
|
|
|
if ((fileInfo.Attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint)
|
|
|
|
if ((fileInfo.Attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using Stream thisFileStream = File.OpenRead(path);
|
|
|
|
using var fileHandle = File.OpenHandle(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
|
|
|
length = thisFileStream.Length;
|
|
|
|
length = RandomAccess.GetLength(fileHandle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new FileMetadata
|
|
|
|
return new FileMetadata
|
|
|
|