|
@@ -1,6 +1,7 @@
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Globalization;
|
|
|
+using System.IO;
|
|
|
using System.Linq;
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
|
@@ -65,6 +66,12 @@ namespace MediaBrowser.LocalMetadata.Images
|
|
|
|
|
|
var path = item.ContainingFolderPath;
|
|
|
|
|
|
+ // Exit if the cache dir does not exist, alternative solution is to create it, but that's a lot of empty dirs...
|
|
|
+ if (!Directory.Exists(path))
|
|
|
+ {
|
|
|
+ return Array.Empty<FileSystemMetadata>();
|
|
|
+ }
|
|
|
+
|
|
|
if (includeDirectories)
|
|
|
{
|
|
|
return directoryService.GetFileSystemEntries(path)
|