mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Use File.GetAttributes instead of creating a new FileInfo
This commit is contained in:
parent
3bc9f38833
commit
794b73c62d
@ -140,10 +140,6 @@ namespace Jellyfin.Server.Infrastructure
|
||||
.ConfigureAwait(true);
|
||||
}
|
||||
|
||||
private static bool IsSymLink(string path)
|
||||
{
|
||||
var fileInfo = new FileInfo(path);
|
||||
return (fileInfo.Attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint;
|
||||
}
|
||||
private static bool IsSymLink(string path) => (File.GetAttributes(path) & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user