|
@@ -8,28 +8,17 @@ using Microsoft.Extensions.Logging;
|
|
namespace MediaBrowser.Controller.IO
|
|
namespace MediaBrowser.Controller.IO
|
|
{
|
|
{
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// Provides low level File access that is much faster than the File/Directory api's
|
|
|
|
|
|
+ /// Provides low level File access that is much faster than the File/Directory api's.
|
|
/// </summary>
|
|
/// </summary>
|
|
public static class FileData
|
|
public static class FileData
|
|
{
|
|
{
|
|
- private static Dictionary<string, FileSystemMetadata> GetFileSystemDictionary(FileSystemMetadata[] list)
|
|
|
|
- {
|
|
|
|
- var dict = new Dictionary<string, FileSystemMetadata>(StringComparer.OrdinalIgnoreCase);
|
|
|
|
-
|
|
|
|
- foreach (var file in list)
|
|
|
|
- {
|
|
|
|
- dict[file.FullName] = file;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return dict;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Gets the filtered file system entries.
|
|
/// Gets the filtered file system entries.
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="directoryService">The directory service.</param>
|
|
/// <param name="directoryService">The directory service.</param>
|
|
/// <param name="path">The path.</param>
|
|
/// <param name="path">The path.</param>
|
|
/// <param name="fileSystem">The file system.</param>
|
|
/// <param name="fileSystem">The file system.</param>
|
|
|
|
+ /// <param name="appHost">The application host.</param>
|
|
/// <param name="logger">The logger.</param>
|
|
/// <param name="logger">The logger.</param>
|
|
/// <param name="args">The args.</param>
|
|
/// <param name="args">The args.</param>
|
|
/// <param name="flattenFolderDepth">The flatten folder depth.</param>
|
|
/// <param name="flattenFolderDepth">The flatten folder depth.</param>
|