mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Remove AsyncFile.OpenRead
This commit is contained in:
parent
794b73c62d
commit
e34aa22dc1
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ 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 = AsyncFile.OpenRead(path);
|
using Stream thisFileStream = File.OpenRead(path);
|
||||||
length = thisFileStream.Length;
|
length = thisFileStream.Length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue