mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-17 19:54:47 +01:00
Only add internal files if the internal metadata path exists
Signed-off-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Model.IO;
|
||||
|
||||
@@ -78,5 +79,9 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
return filePaths;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool PathExists(string path)
|
||||
=> Directory.Exists(path);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,12 @@ namespace MediaBrowser.Controller.Providers
|
||||
IReadOnlyList<string> GetFilePaths(string path);
|
||||
|
||||
IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
|
||||
|
||||
/// <summary>
|
||||
/// Does the path exist.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns>Whether the path exists.</returns>
|
||||
bool PathExists(string path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user