mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5106] [MERGED] Fixes zero byte nfo files. #10402
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5106
Author: @BaronGreenback
Created: 1/25/2021
Status: ✅ Merged
Merged: 2/3/2021
Merged by: @Bond-009
Base:
master← Head:FileShareTest2📝 Commits (2)
21d15981 attempted fix8d12e6dUpdate BaseNfoSaver.cs📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs(+3 -2)📄 Description
Fixes #4826 and bypasses dotnet bug. (https://github.com/dotnet/runtime/issues/42790)
May be other occurrences of this bug in JF.
From Dotnet Documentation
Filemode.Create - Specifies that the operating system should create a new file.
If the file already exists, it will be overwritten. This requires Write permission.
FileMode.Create is equivalent to requesting that if the file does not exist, use CreateNew;
otherwise, use Truncate. (0 byte file)
If the file already exists but is a hidden file, an UnauthorizedAccessException exception is thrown.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.