diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-20 19:53:32 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-20 19:53:32 -0400 |
| commit | 758d18a652a157240bd80e9e2db7b47688ba3d3b (patch) | |
| tree | 7bb579872bf46ffee47261bc4257220a58eaf995 /MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs | |
| parent | 6fbeee841f5c5f77e0a309a8fa6736b31b7210ec (diff) | |
Switched to low-level io methods for better performance
Diffstat (limited to 'MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs')
| -rw-r--r-- | MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs index 0abdba29d..d005b50ff 100644 --- a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs +++ b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Threading.Tasks;
using MediaBrowser.Controller.Events;
using MediaBrowser.Model.Entities;
+using MediaBrowser.Controller.IO;
namespace MediaBrowser.Controller.Providers
{
@@ -47,9 +48,9 @@ namespace MediaBrowser.Controller.Providers /// </summary>
private void PopulateImages(BaseEntity item, ItemResolveEventArgs args)
{
- foreach (KeyValuePair<string, FileAttributes> file in args.FileSystemChildren)
+ foreach (KeyValuePair<string, WIN32_FIND_DATA> file in args.FileSystemChildren)
{
- if (file.Value.HasFlag(FileAttributes.Directory))
+ if (file.Value.IsDirectory)
{
continue;
}
@@ -80,9 +81,9 @@ namespace MediaBrowser.Controller.Providers {
List<string> backdropFiles = new List<string>();
- foreach (KeyValuePair<string, FileAttributes> file in args.FileSystemChildren)
+ foreach (KeyValuePair<string, WIN32_FIND_DATA> file in args.FileSystemChildren)
{
- if (file.Value.HasFlag(FileAttributes.Directory))
+ if (file.Value.IsDirectory)
{
continue;
}
|
