mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Update BaseNfoSaver.cs
This commit is contained in:
parent
21d15989f5
commit
8d12e6d6eb
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||
// On Windows, saving the file will fail if the file is hidden or readonly
|
||||
FileSystem.SetAttributes(path, false, false);
|
||||
|
||||
// use FileShare.None as this bypasses dotnet bug dotnet/runtime#42790 .
|
||||
using (var filestream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None))
|
||||
{
|
||||
stream.CopyTo(filestream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue