mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 11:13:32 +01:00
Fix creating DLNA profiles
This commit is contained in:
@@ -350,7 +350,7 @@ namespace Emby.Dlna
|
|||||||
Directory.CreateDirectory(systemProfilesPath);
|
Directory.CreateDirectory(systemProfilesPath);
|
||||||
|
|
||||||
var fileOptions = AsyncFile.WriteOptions;
|
var fileOptions = AsyncFile.WriteOptions;
|
||||||
fileOptions.Mode = FileMode.CreateNew;
|
fileOptions.Mode = FileMode.Create;
|
||||||
fileOptions.PreallocationSize = length;
|
fileOptions.PreallocationSize = length;
|
||||||
using (var fileStream = new FileStream(path, fileOptions))
|
using (var fileStream = new FileStream(path, fileOptions))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user