fix remote image service not ensuring save directory existence

pull/702/head
Luke Pulverenti 11 years ago
parent ad3e4dee0e
commit d813490363

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

Loading…
Cancel
Save