mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-28 15:32:27 +00:00
fix remote image service not ensuring save directory existence
This commit is contained in:
@@ -359,6 +359,8 @@ namespace MediaBrowser.Api.Images
|
||||
|
||||
var fullCachePath = GetFullCachePath(urlHash + "." + ext);
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(fullCachePath));
|
||||
|
||||
using (var stream = result.Content)
|
||||
{
|
||||
using (var filestream = _fileSystem.GetFileStream(fullCachePath, FileMode.Create, FileAccess.Write, FileShare.Read, true))
|
||||
|
||||
Reference in New Issue
Block a user