Update BaseNfoSaver.cs
This commit is contained in:
parent
21d15989f5
commit
8d12e6d6eb
|
@ -206,6 +206,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||||
// On Windows, saving the file will fail if the file is hidden or readonly
|
// On Windows, saving the file will fail if the file is hidden or readonly
|
||||||
FileSystem.SetAttributes(path, false, false);
|
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))
|
using (var filestream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None))
|
||||||
{
|
{
|
||||||
stream.CopyTo(filestream);
|
stream.CopyTo(filestream);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user