Merge pull request #6890 from crobibero/dlna-create

Fix creating DLNA profiles
This commit is contained in:
Claus Vium 2021-11-21 20:46:41 +01:00 committed by GitHub
commit 11419cbbfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,7 @@ namespace Emby.Dlna
Directory.CreateDirectory(systemProfilesPath);
var fileOptions = AsyncFile.WriteOptions;
fileOptions.Mode = FileMode.CreateNew;
fileOptions.Mode = FileMode.Create;
fileOptions.PreallocationSize = length;
using (var fileStream = new FileStream(path, fileOptions))
{