fix remote image service not ensuring save directory existence

This commit is contained in:
Luke Pulverenti 2013-11-15 10:11:35 -05:00
parent ad3e4dee0e
commit d813490363

View file

@ -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))